2022-03-10 12:25:23 +00:00
|
|
|
{ config, pkgs, ... }: {
|
2021-05-31 09:15:44 +01:00
|
|
|
|
|
|
|
boot = {
|
2021-08-22 09:24:23 +01:00
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
2022-03-10 12:25:23 +00:00
|
|
|
initrd.availableKernelModules =
|
|
|
|
[ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_acpi" ];
|
2021-05-31 09:15:44 +01:00
|
|
|
initrd.kernelModules = [ "dm-snapshot" ];
|
2021-10-01 10:06:37 +01:00
|
|
|
kernelModules = [ "kvm-amd" ];
|
2021-05-31 09:15:44 +01:00
|
|
|
extraModulePackages = [ ];
|
|
|
|
loader.systemd-boot.enable = true;
|
|
|
|
loader.efi.canTouchEfiVariables = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.btrfs.autoScrub.enable = true;
|
2021-06-12 12:54:16 +01:00
|
|
|
fileSystems."/data" = {
|
|
|
|
device = "/dev/disk/by-uuid/78e8e5b5-9068-4381-8e85-b4297607f9ea";
|
2021-05-31 09:15:44 +01:00
|
|
|
fsType = "btrfs";
|
2022-03-10 12:25:23 +00:00
|
|
|
options = [
|
|
|
|
"autodefrag"
|
|
|
|
"space_cache"
|
|
|
|
"inode_cache"
|
|
|
|
"noatime"
|
|
|
|
"nodiratime"
|
|
|
|
"compress=zstd"
|
|
|
|
];
|
2021-05-31 09:15:44 +01:00
|
|
|
};
|
|
|
|
|
2022-03-10 12:25:23 +00:00
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-uuid/28afab71-ff3d-4f1a-b7e4-2129572706dd";
|
|
|
|
fsType = "btrfs";
|
|
|
|
};
|
2021-05-31 09:15:44 +01:00
|
|
|
|
2022-03-10 12:25:23 +00:00
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/5BFB-9E6B";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2021-10-01 10:06:37 +01:00
|
|
|
|
|
|
|
swapDevices = [ ];
|
2021-05-31 09:15:44 +01:00
|
|
|
|
2021-10-01 10:06:37 +01:00
|
|
|
nix.maxJobs = 2;
|
|
|
|
nix.buildCores = 7;
|
2021-05-31 09:15:44 +01:00
|
|
|
|
|
|
|
zramSwap = {
|
|
|
|
enable = true;
|
|
|
|
algorithm = "zstd";
|
|
|
|
memoryPercent = 50;
|
|
|
|
};
|
|
|
|
}
|