setup vm for testing custom kernel

This commit is contained in:
Dmitriy Kholkin 2024-07-16 14:56:39 +03:00 committed by Dmitriy
parent 55f98da282
commit 5dc9fcc5f5
3 changed files with 34 additions and 0 deletions

View File

@ -175,6 +175,7 @@
Dell-Laptop = mkHost "Dell-Laptop" unstable;
Home-Hypervisor = mkHost "Home-Hypervisor" unstable;
NixOS-VPS = mkHost "NixOS-VPS" stable;
NixOS-VM = mkHost "NixOS-VM" unstable;
}
);

View File

@ -0,0 +1,32 @@
{ modulesPath, self, inputs, config, pkgs, ... }: {
disabledModules = [ "${self}/modules/pass-store.nix" ];
imports = [
"${modulesPath}/profiles/qemu-guest.nix"
"${modulesPath}/virtualisation/qemu-vm.nix"
../AMD-Workstation/kernel
inputs.self.customModules.devices
inputs.self.customProfiles.ccache
inputs.self.customModules.users
];
virtualisation.memorySize = 4096;
virtualisation.cores = 4;
virtualisation.resolution.x = 1920;
virtualisation.resolution.y = 1080;
users.mutableUsers = false;
users.users.${config.mainuser} = {
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";
}

1
machines/NixOS-VM/system Normal file
View File

@ -0,0 +1 @@
x86_64-linux