diff --git a/hosts/default.nix b/hosts/default.nix index 357302f..f50aaec 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -29,4 +29,7 @@ in hardware.framework-16-7040-amd ]; }; + vm = { + system = "x86_64-linux"; + }; } diff --git a/hosts/vm/configuration.nix b/hosts/vm/configuration.nix new file mode 100644 index 0000000..22430f1 --- /dev/null +++ b/hosts/vm/configuration.nix @@ -0,0 +1,24 @@ +{ pkgs, ... }: + +{ + environment.systemPackages = with pkgs; [ + htop + ]; + + boot = { + loader.grub.devices = [ "/dev/vda" ]; + initrd = { + enable = true; + systemd.enable = true; + }; + }; + + services.getty.autologinUser = "root"; + + fileSystems."/" = { + fsType = "tmpfs"; + options = [ "mode=0755" ]; + }; + + system.stateVersion = "25.05"; +}