56 lines
1.6 KiB
Nix
56 lines
1.6 KiB
Nix
{ custom, hostname }: { lib, ... }:
|
|
{
|
|
imports = [
|
|
custom.inputs.nixos-hardware.nixosModules.dell-precision-5530
|
|
custom.inputs.nixos-hardware.nixosModules.common-gpu-nvidia
|
|
custom.inputs.nixos-hardware.nixosModules.common-gpu-intel
|
|
"${custom.inputs.self}/hardware/bluetooth"
|
|
"${custom.inputs.self}/hardware/nvidia"
|
|
"${custom.inputs.self}/hardware/dvd"
|
|
(import "${custom.inputs.self}/modules/desktop" { inherit custom; })
|
|
"${custom.inputs.self}/modules/logs-share"
|
|
(import "${custom.inputs.self}/modules/makemkv" { inherit custom; })
|
|
"${custom.inputs.self}/modules/rdp"
|
|
(import "${custom.inputs.self}/modules/restic-client-desktop" { inherit custom; })
|
|
];
|
|
boot.initrd.availableKernelModules = [
|
|
"aesni_intel"
|
|
"ahci"
|
|
"cryptd"
|
|
"nvme"
|
|
"rtsx_pci_sdmmc"
|
|
"sd_mod"
|
|
"sr_mod"
|
|
"usbhid"
|
|
"usb_storage"
|
|
"xhci_pci"
|
|
];
|
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
|
boot.kernelModules = [ "kvm-intel" "sg" ];
|
|
boot.extraModulePackages = [ ];
|
|
boot.kernelParams = [ ];
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
boot.initrd.luks.devices."cryptlvm".device = "/dev/nvme0n1p2";
|
|
|
|
# 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;
|
|
|
|
swapDevices = [
|
|
{ device = "/dev/disk/by-label/swap"; }
|
|
];
|
|
|
|
virtualisation.virtualbox.host.enable = true;
|
|
}
|
|
|