dotfiles/nixos/boot.nix

19 lines
405 B
Nix
Raw Normal View History

2019-04-21 10:18:35 +01:00
{ config, pkgs, ... }:
{
fileSystems."/".options = [ "noatime" "nodiratime" "discard" ];
boot = {
2019-07-06 08:55:20 +01:00
kernelModules = [ "acpi_call" ];
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
kernel.sysctl = {
"vm.swappiness" = 1;
"max_user_watches" = 524288;
2019-07-06 08:55:20 +01:00
};
2019-04-21 10:18:35 +01:00
loader.grub = {
enable = true;
version = 2;
2019-07-06 08:55:20 +01:00
useOSProber = true;
2019-04-21 10:18:35 +01:00
};
};
2019-07-06 08:55:20 +01:00
}