2022-02-28 22:34:34 +01:00
|
|
|
{ inputs, lib, ... }:
|
2021-11-16 20:57:04 +01:00
|
|
|
{
|
2022-02-28 22:34:34 +01:00
|
|
|
imports = [
|
|
|
|
inputs.nixos-hardware.nixosModules.dell-precision-5530
|
|
|
|
inputs.nixos-hardware.nixosModules.common-gpu-nvidia
|
2022-06-27 14:33:37 +02:00
|
|
|
inputs.nixos-hardware.nixosModules.common-gpu-intel
|
2022-02-28 22:34:34 +01:00
|
|
|
"${inputs.self}/hardware/bluetooth"
|
|
|
|
"${inputs.self}/hardware/nvidia"
|
2022-05-27 13:15:15 +02:00
|
|
|
"${inputs.self}/modules/data-share"
|
2022-02-28 22:34:34 +01:00
|
|
|
"${inputs.self}/modules/desktop"
|
|
|
|
"${inputs.self}/modules/docker"
|
|
|
|
"${inputs.self}/modules/droidcam"
|
|
|
|
"${inputs.self}/modules/eog"
|
|
|
|
"${inputs.self}/modules/espanso"
|
|
|
|
"${inputs.self}/modules/lockscreen"
|
|
|
|
"${inputs.self}/modules/nix-direnv"
|
|
|
|
"${inputs.self}/modules/restic"
|
2022-05-27 13:15:15 +02:00
|
|
|
"${inputs.self}/modules/tlp"
|
2022-06-20 21:06:55 +02:00
|
|
|
"${inputs.self}/modules/tmux"
|
2022-02-28 22:34:34 +01:00
|
|
|
];
|
2021-11-29 20:59:10 +01:00
|
|
|
boot.initrd.availableKernelModules = [
|
2021-11-29 18:38:28 +01:00
|
|
|
"aesni_intel"
|
|
|
|
"ahci"
|
|
|
|
"cryptd"
|
2021-11-29 18:44:15 +01:00
|
|
|
"nvme"
|
|
|
|
"rtsx_pci_sdmmc"
|
2021-11-29 18:38:28 +01:00
|
|
|
"sd_mod"
|
2021-11-29 18:44:15 +01:00
|
|
|
"sr_mod"
|
|
|
|
"usbhid"
|
2021-11-29 18:38:28 +01:00
|
|
|
"usb_storage"
|
|
|
|
"xhci_pci"
|
|
|
|
];
|
2021-11-22 15:12:19 +01:00
|
|
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
2021-11-16 20:57:04 +01:00
|
|
|
boot.extraModulePackages = [ ];
|
2021-11-29 21:25:37 +01:00
|
|
|
boot.kernelParams = [ ];
|
2021-11-30 19:17:45 +01:00
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
2021-11-29 18:38:28 +01:00
|
|
|
boot.initrd.luks.devices."cryptlvm".device = "/dev/nvme0n1p2";
|
2021-11-16 20:57:04 +01:00
|
|
|
|
2022-06-27 14:57:05 +02:00
|
|
|
# Required to build aarch64 packages
|
|
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
|
2022-01-03 20:29:08 +01:00
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-label/nixos";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-label/BOOT";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2022-01-10 20:58:26 +01:00
|
|
|
|
|
|
|
networking.hostName = "gwyn"; # Define your hostname.
|
|
|
|
|
2022-01-03 20:29:08 +01:00
|
|
|
swapDevices = [
|
|
|
|
{ device = "/dev/disk/by-label/swap"; }
|
|
|
|
];
|
2022-01-10 20:58:26 +01:00
|
|
|
|
|
|
|
virtualisation.virtualbox.host.enable = true;
|
2021-11-16 20:57:04 +01:00
|
|
|
}
|
2021-11-22 15:12:19 +01:00
|
|
|
|