···1010nix flake update den
1111```
12121313-- Run checks to test everything works.
1313+- Edit [modules/hosts.nix](modules/hosts.nix)
1414+1515+- Run the VM
1616+1717+We recommend to use a VM develop cycle so you can play with the system before applying to your hardware.
1818+1919+See [modules/vm.nix](modules/vm.nix)
14201521```console
1616-nix flake check
2222+nix run .#vm
1723```
1818-1919-- Edit [modules/hosts.nix](modules/hosts.nix)
+12-4
templates/default/modules/vm.nix
···11# enables `nix run .#vm`. it is very useful to have a VM
22# you can edit your config and launch the VM to test stuff
33# instead of having to reboot each time.
44-{ inputs, ... }:
44+{ inputs, den, ... }:
55{
66+77+ # USER TODO: remove this tty-autologin used for the VM
88+ den.aspects.igloo.includes = [ (den.provides.tty-autologin "tux") ];
99+610 perSystem =
711 { pkgs, ... }:
812 {
913 packages.vm = pkgs.writeShellApplication {
1014 name = "vm";
1111- text = ''
1212- ${inputs.self.nixosConfigurations.igloo.config.system.build.vm}/bin/run-igloo-vm "$@"
1313- '';
1515+ text =
1616+ let
1717+ host = inputs.self.nixosConfigurations.igloo.config;
1818+ in
1919+ ''
2020+ ${host.system.build.vm}/bin/run-${host.networking.hostName}-vm "$@"
2121+ '';
1422 };
1523 };
1624}