13 lines
305 B
Nix
13 lines
305 B
Nix
{
|
|
# No fork bomb
|
|
environment.etc."security/limits.conf".text = ''
|
|
* soft nproc 2000
|
|
* hard nproc 4000
|
|
'';
|
|
|
|
# Wheel group may edit the configuration.
|
|
systemd.tmpfiles.rules = [
|
|
"Z /etc/nixos ~6070 root wheel"
|
|
"A /etc/nixos - - - - d:u::rwx,d:g::-,d:g:wheel:rwx,d:mask:rwx"
|
|
];
|
|
}
|