diff --git a/flake.nix b/flake.nix index 5823fb3..193d44b 100644 --- a/flake.nix +++ b/flake.nix @@ -36,7 +36,9 @@ homeModules = [ ./modules/home ]; hostModuleDir = ./hosts; - hosts = {}; + hosts = { + NixOS-VM.system = "x86_64-linux"; + }; }; perSystem = { ... }: { }; diff --git a/hosts/NixOS-VM/default.nix b/hosts/NixOS-VM/default.nix new file mode 100644 index 0000000..6401034 --- /dev/null +++ b/hosts/NixOS-VM/default.nix @@ -0,0 +1,32 @@ +{ + modulesPath, + config, + pkgs, + ... +}: +{ + imports = [ + "${modulesPath}/profiles/qemu-guest.nix" + "${modulesPath}/virtualisation/qemu-vm.nix" + ]; + + virtualisation.memorySize = 4096; + virtualisation.cores = 4; + virtualisation.resolution.x = 1920; + virtualisation.resolution.y = 1080; + virtualisation.qemu.options = [ "-vga qxl" "-display gtk" ]; + + users.mutableUsers = false; + users.users.ataraxia = { + isNormalUser = true; + extraGroups = [ "wheel" ]; + hashedPassword = "$y$j9T$ZC44T3XYOPapB26cyPsA4.$8wlYEbwXFszC9nrg0vafqBZFLMPabXdhnzlT3DhUit6"; + shell = pkgs.bash; + }; + + boot.supportedFilesystems = [ "zfs" ]; + boot.zfs.forceImportRoot = false; + networking.hostId = "84977205"; + + system.stateVersion = "24.11"; +}