NixOSConfig/lib/configuration.nix

27 lines
528 B
Nix
Raw Normal View History

2024-05-01 16:58:39 +00:00
{ machineConfig, ... }: {
imports = [
./modules/custom-build-vm.nix
];
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;
};
};
in {
vmVariant = vmConfig;
vmVariantWithBootLoader = vmConfig;
};
# Networking
networking.hostName = machineConfig.name;
};
}