2024-05-01 16:58:39 +00:00
|
|
|
{ machineConfig, ... }: {
|
|
|
|
imports = [
|
|
|
|
./modules/custom-build-vm.nix
|
2024-05-03 12:02:42 +00:00
|
|
|
./modules/custom-sops-nix.nix
|
2024-05-01 16:58:39 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
config = {
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
|
2024-05-01 17:16:40 +00:00
|
|
|
# Map host keys into VM and launch vm using `virt-viewer`
|
2024-05-01 16:58:39 +00:00
|
|
|
virtualisation =
|
|
|
|
let
|
|
|
|
vmConfig = {
|
|
|
|
virtualisation = {
|
|
|
|
sharedHostKeys = true;
|
|
|
|
virt-viewer = true;
|
2024-05-07 11:57:22 +00:00
|
|
|
cores = 4;
|
|
|
|
memorySize = 4 * 1024;
|
2024-05-01 16:58:39 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
vmVariant = vmConfig;
|
|
|
|
vmVariantWithBootLoader = vmConfig;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Networking
|
|
|
|
networking.hostName = machineConfig.name;
|
|
|
|
};
|
|
|
|
}
|