moved security module to dns module and multiple submodules
This commit is contained in:
parent
34d472ffc8
commit
6e01e14b33
8 changed files with 43 additions and 34 deletions
13
modules/security/misc.nix
Normal file
13
modules/security/misc.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
# 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"
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue