feat: add nixos-vm host to test flake
This commit is contained in:
parent
7d2ce8e7ec
commit
d2a2bbfa7e
@ -36,7 +36,9 @@
|
|||||||
homeModules = [ ./modules/home ];
|
homeModules = [ ./modules/home ];
|
||||||
hostModuleDir = ./hosts;
|
hostModuleDir = ./hosts;
|
||||||
|
|
||||||
hosts = {};
|
hosts = {
|
||||||
|
NixOS-VM.system = "x86_64-linux";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
perSystem = { ... }: { };
|
perSystem = { ... }: { };
|
||||||
|
32
hosts/NixOS-VM/default.nix
Normal file
32
hosts/NixOS-VM/default.nix
Normal file
@ -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";
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user