Something went wrong. Try again.
My nixos configuration
Something went wrong. Try again.
709 B · 25 lines
Nix
at den
1234567891011121314151617181920212223242526# # enables `nix run .#vm`. it is very useful to have a VM# # you can edit your config and launch the VM to test stuff# # instead of having to reboot each time.{ inputs, den, ... }:{
# USER TODO: remove this tty-autologin used for the VM den.aspects.flock.includes = [ (den.batteries.tty-autologin "igneous") ];
perSystem = { pkgs, ... }: { packages.vm = pkgs.writeShellApplication { name = "vm"; text = let host = inputs.self.nixosConfigurations.flock.config; in '' export QEMU_OPTS="-m 8192 -smp 4" ${host.system.build.vm}/bin/run-${host.networking.hostName}-vm "$@" ''; }; };}