2021-05-31 09:15:44 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
kernelPackages = pkgs.linuxPackages_latest_hardened;
|
|
|
|
initrd.availableKernelModules = [ "ahci" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "btrfs" ];
|
|
|
|
initrd.kernelModules = [ "dm-snapshot" ];
|
|
|
|
kernelModules = [ "kvm-intel" ];
|
|
|
|
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";
|
2021-06-12 12:54:16 +01:00
|
|
|
options = [ "autodefrag" "space_cache" "inode_cache" "noatime" "nodiratime" "compress=zstd" ];
|
2021-05-31 09:15:44 +01:00
|
|
|
};
|
|
|
|
|
2021-06-12 12:54:16 +01:00
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-uuid/68bb21bd-90da-4da4-b97e-c6da3b1f8235";
|
2021-05-31 09:15:44 +01:00
|
|
|
fsType = "ext4";
|
|
|
|
options = [ "noatime" "nodiratime" ];
|
|
|
|
};
|
|
|
|
|
2021-06-12 12:54:16 +01:00
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/0129-8152";
|
2021-05-31 09:15:44 +01:00
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
2021-06-12 12:54:16 +01:00
|
|
|
swapDevices = [
|
|
|
|
{ device = "/dev/disk/by-uuid/5f635052-a940-466e-a7cf-4799adace60e"; }
|
2021-05-31 09:15:44 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
zramSwap = {
|
|
|
|
enable = true;
|
|
|
|
algorithm = "zstd";
|
|
|
|
memoryPercent = 50;
|
|
|
|
};
|
|
|
|
}
|