mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
nixos/netdata: increase performance
This commit is contained in:
parent
6e592faa92
commit
fb4d71a39f
1 changed files with 7 additions and 0 deletions
|
@ -151,6 +151,8 @@ in {
|
|||
# Runtime directory and mode
|
||||
RuntimeDirectory = "netdata";
|
||||
RuntimeDirectoryMode = "0755";
|
||||
# Performance
|
||||
LimitNOFILE = "30000";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -170,6 +172,11 @@ in {
|
|||
permissions = "u+rx,g+rx,o-rwx";
|
||||
};
|
||||
|
||||
security.pam.loginLimits = [
|
||||
{ domain = "netdata"; type = "soft"; item = "nofile"; value = "10000"; }
|
||||
{ domain = "netdata"; type = "hard"; item = "nofile"; value = "30000"; }
|
||||
];
|
||||
|
||||
users.users = optional (cfg.user == defaultUser) {
|
||||
name = defaultUser;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue