2022-03-10 12:25:23 +00:00
|
|
|
{ config, pkgs, ... }: {
|
2019-04-21 10:18:35 +01:00
|
|
|
fileSystems."/".options = [ "noatime" "nodiratime" "discard" ];
|
|
|
|
|
|
|
|
boot = {
|
2019-07-06 08:55:20 +01:00
|
|
|
kernel.sysctl = {
|
2019-08-24 10:34:08 +01:00
|
|
|
"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
|
|
|
};
|
2019-12-24 19:13:52 +00:00
|
|
|
|
2019-07-06 08:55:20 +01:00
|
|
|
}
|
2021-04-11 10:25:32 +01:00
|
|
|
|