nixos/systems/desktop-vm/default.nix

49 lines
1022 B
Nix

{ hostname }: { config, inputs, ... }:
{
imports = [
"${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";
};
hardware.video.hidpi.enable = true;
networking = {
hostName = hostname;
interfaces.enp0s3.useDHCP = true;
};
swapDevices = [
{ device = "/dev/disk/by-label/swap"; }
];
virtualisation.virtualbox.guest.enable = true;
virtualisation.virtualbox.guest.x11 = true;
users.users.${config.az-username} = {
extraGroups = [
"vboxsf"
];
};
profiles.az-desktop.enable = true;
services.az-x86.enable = true;
}