dotfiles/nixos/boot.nix

22 lines
472 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
kernel.sysctl = {
"max_user_watches" = 524288;
2019-12-24 19:13:52 +00:00
"kernel.dmesg_restrict" = true;
"kernel.unprivileged_bpf_disabled" = true;
"kernel.unprivileged_userns_clone" = 1;
"net.core.bpf_jit_harden" = true;
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;
2020-06-24 18:51:03 +01:00
memtest86.enable = true;
2019-04-21 10:18:35 +01:00
};
};
2019-12-24 19:13:52 +00:00
2019-07-06 08:55:20 +01:00
}