2022-10-16 17:01:58 +00:00
|
|
|
{ config, pkgs, pkgs-unstable, ... }:
|
2020-08-15 03:06:11 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
boot = {
|
2022-10-16 17:01:58 +00:00
|
|
|
kernelPackages = pkgs-unstable.linuxPackages_latest;
|
2020-08-15 03:06:11 +00:00
|
|
|
kernel.sysctl."vm.swappiness" = 5;
|
|
|
|
cleanTmpDir = true;
|
|
|
|
blacklistedKernelModules = [ "psmouse" ];
|
|
|
|
|
|
|
|
initrd = {
|
|
|
|
luks.devices."${config.networking.hostName}" = {
|
|
|
|
name = config.networking.hostName;
|
|
|
|
device = "/dev/disk/by-uuid/e8a47693-e6d9-4d66-ac8a-13633e606f3d";
|
|
|
|
preLVM = true;
|
|
|
|
allowDiscards = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems = {
|
2020-11-26 04:20:52 +00:00
|
|
|
"/home".options = [ "noatime" ];
|
|
|
|
"/boot".options = [ "noatime" ];
|
|
|
|
"/".options = [ "noatime" ];
|
2020-08-15 03:06:11 +00:00
|
|
|
};
|
2022-02-01 07:00:28 +00:00
|
|
|
|
|
|
|
services.btrfs.autoScrub = {
|
|
|
|
enable = true;
|
|
|
|
fileSystems = [ "/" ];
|
|
|
|
};
|
2020-08-15 03:06:11 +00:00
|
|
|
}
|