2023-05-29 12:26:02 +02:00
|
|
|
{ custom, hostname }: { config, ... }:
|
2021-11-16 20:57:04 +01:00
|
|
|
{
|
2022-02-28 22:37:42 +01:00
|
|
|
imports = [
|
2022-11-04 19:35:57 +01:00
|
|
|
(import "${custom.inputs.self}/modules/desktop" { inherit custom; })
|
|
|
|
"${custom.inputs.self}/modules/logs-share"
|
2022-02-28 22:37:42 +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 = [ ];
|
2022-11-16 12:11:05 +01:00
|
|
|
# Required to build aarch64 packages
|
|
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
2021-11-16 20:57:04 +01:00
|
|
|
|
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
|
|
|
|
2023-05-22 11:45:00 +02:00
|
|
|
hardware.video.hidpi.enable = true;
|
|
|
|
|
2022-01-10 21:15:52 +01:00
|
|
|
networking = {
|
2022-09-06 23:03:29 +02:00
|
|
|
hostName = hostname;
|
2022-06-03 13:08:14 +02:00
|
|
|
interfaces.enp0s3.useDHCP = true;
|
2022-01-10 21:15:52 +01:00
|
|
|
};
|
|
|
|
|
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;
|
2023-02-17 09:07:06 +01:00
|
|
|
virtualisation.virtualbox.guest.x11 = true;
|
2023-05-29 12:26:02 +02:00
|
|
|
users.users.${config.az-username} = {
|
2023-05-26 12:52:01 +02:00
|
|
|
extraGroups = [
|
|
|
|
"vboxsf"
|
|
|
|
];
|
|
|
|
};
|
2021-11-16 20:57:04 +01:00
|
|
|
}
|
2022-01-10 21:15:52 +01:00
|
|
|
|