nixos/systems/desktop-vm/default.nix

40 lines
852 B
Nix

{ custom, hostname }: { ... }:
{
imports = [
(import "${custom.inputs.self}/modules/desktop" { inherit custom; })
"${custom.inputs.self}/modules/logs-share"
];
boot.initrd.availableKernelModules = [
"ata_piix"
"ohci_pci"
"sd_mod"
"sr_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
# Required to build aarch64 packages
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-label/BOOT";
fsType = "vfat";
};
networking = {
hostName = hostname;
interfaces.enp0s3.useDHCP = true;
};
swapDevices = [
{ device = "/dev/disk/by-label/swap"; }
];
virtualisation.virtualbox.guest.enable = true;
}