Initial commit
This commit is contained in:
commit
cfcc57a8bd
353 changed files with 18756 additions and 0 deletions
22
flake/den/templates/default/modules/vm.nix
Normal file
22
flake/den/templates/default/modules/vm.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# enables `nix run .#vm`. it is very useful to have a VM
|
||||
# you can edit your config an launch the VM to test stuff
|
||||
# instead of having to reboot each time.
|
||||
{ inputs, eg, ... }:
|
||||
{
|
||||
|
||||
den.aspects.igloo.includes = [
|
||||
eg.vm._.gui
|
||||
# eg.vm._.tui
|
||||
];
|
||||
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
packages.vm = pkgs.writeShellApplication {
|
||||
name = "vm";
|
||||
text = ''
|
||||
${inputs.self.nixosConfigurations.igloo.config.system.build.vm}/bin/run-igloo-vm "$@"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue