nixos-config/system/mistmane/boot-config.nix

24 lines
613 B
Nix
Raw Normal View History

{ config, pkgs, ... }:
{
boot = {
kernel.sysctl."vm.swappiness" = 5;
2021-08-25 05:03:03 +00:00
kernelPackages = pkgs.linuxPackages_pinebookpro_lts;
2021-10-12 20:48:36 +00:00
kernelParams = [ "console=tty1" ];
cleanTmpDir = true;
loader.grub.enable = false;
loader.generic-extlinux-compatible.enable = true;
2021-10-12 20:48:36 +00:00
initrd.luks.devices."${config.networking.hostName}" = {
name = config.networking.hostName;
device = "/dev/disk/by-uuid/74b7cded-e9f8-432f-b694-5bea09635168";
preLVM = true;
allowDiscards = true;
};
};
fileSystems = {
"/boot".options = [ "noatime" ];
"/".options = [ "noatime" ];
};
}