nixos/netdata: increase performance

This commit is contained in:
Izorkin 2019-07-05 22:15:38 +03:00
parent 6e592faa92
commit fb4d71a39f

View file

@ -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;
};