nixos/systems/desktop-vm/default.nix

34 lines
601 B
Nix
Raw Normal View History

2021-12-28 23:05:17 +01:00
{ ... }:
2021-11-16 20:57:04 +01:00
{
2021-11-23 20:57:23 +01:00
boot.initrd.availableKernelModules = [
"ata_piix"
"ohci_pci"
"sd_mod"
"sr_mod"
];
2021-11-16 20:57:04 +01:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
2021-12-22 16:53:44 +01:00
fileSystems."/" = {
2021-11-23 20:57:23 +01:00
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-label/BOOT";
fsType = "vfat";
};
2021-11-16 20:57:04 +01:00
2022-01-10 21:15:52 +01:00
networking = {
hostName = "nixos-vm";
interfaces.enp0s3.useDHCP = true;
};
2021-11-23 20:57:23 +01:00
swapDevices = [
{ device = "/dev/disk/by-label/swap"; }
];
2021-11-16 20:57:04 +01:00
virtualisation.virtualbox.guest.enable = true;
}
2022-01-10 21:15:52 +01:00