setup vm for testing custom kernel
This commit is contained in:
parent
55f98da282
commit
5dc9fcc5f5
@ -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;
|
||||
}
|
||||
);
|
||||
|
||||
|
32
machines/NixOS-VM/default.nix
Normal file
32
machines/NixOS-VM/default.nix
Normal 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
1
machines/NixOS-VM/system
Normal file
@ -0,0 +1 @@
|
||||
x86_64-linux
|
Loading…
x
Reference in New Issue
Block a user