feat: add nixos-vm host to test flake

This commit is contained in:
Dmitriy Kholkin 2025-02-19 12:35:37 +03:00
parent 7d2ce8e7ec
commit d2a2bbfa7e
Signed by: AtaraxiaDev
GPG Key ID: FD266B810DF48DF2
2 changed files with 35 additions and 1 deletions
flake.nix
hosts/NixOS-VM

@ -36,7 +36,9 @@
homeModules = [ ./modules/home ];
hostModuleDir = ./hosts;
hosts = {};
hosts = {
NixOS-VM.system = "x86_64-linux";
};
};
perSystem = { ... }: { };

@ -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";
}