dotfiles/nixos/boot.nix
Cyryl Płotnicki 3d6dd759c4 nixfmt
2022-03-10 12:25:23 +00:00

15 lines
349 B
Nix

{ config, pkgs, ... }: {
fileSystems."/".options = [ "noatime" "nodiratime" "discard" ];
boot = {
kernel.sysctl = {
"max_user_watches" = 524288;
"kernel.dmesg_restrict" = true;
"kernel.unprivileged_bpf_disabled" = true;
"kernel.unprivileged_userns_clone" = 1;
"net.core.bpf_jit_harden" = true;
};
};
}