summaryrefslogtreecommitdiff
path: root/modules/naemon
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-04-05 15:57:20 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-04-25 00:04:54 +0200
commit2bcc666fd591dbf7543fc550ff1772508695a746 (patch)
tree65bb255cbeba40f4c385211bcc32df4c25e6ea6b /modules/naemon
parent27794e1507ab5bd4b0f31278cf8049854790e4a7 (diff)
downloadNUR-2bcc666fd591dbf7543fc550ff1772508695a746.tar.gz
NUR-2bcc666fd591dbf7543fc550ff1772508695a746.tar.zst
NUR-2bcc666fd591dbf7543fc550ff1772508695a746.zip
Upgrade to nixos-unstable
Diffstat (limited to 'modules/naemon')
-rw-r--r--modules/naemon/default.nix18
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/naemon/default.nix b/modules/naemon/default.nix
index 38e99a9c..976de693 100644
--- a/modules/naemon/default.nix
+++ b/modules/naemon/default.nix
@@ -137,18 +137,18 @@ in
137 } 137 }
138 ]; 138 ];
139 139
140 users.users = optionalAttrs (cfg.user == "naemon") (singleton 140 users.users = optionalAttrs (cfg.user == "naemon") {
141 { 141 naemon = {
142 name = "naemon";
143 group = cfg.group; 142 group = cfg.group;
144 uid = config.ids.uids.nagios; 143 uid = config.ids.uids.nagios;
145 extraGroups = [ "keys" ]; 144 extraGroups = [ "keys" ];
146 }); 145 };
147 users.groups = optionalAttrs (cfg.user == "naemon") (singleton 146 };
148 { 147 users.groups = optionalAttrs (cfg.user == "naemon") {
149 name = "naemon"; 148 naemon = {
150 gid = config.ids.gids.nagios; 149 gid = config.ids.gids.nagios;
151 }); 150 };
151 };
152 152
153 services.filesWatcher.naemon = { 153 services.filesWatcher.naemon = {
154 paths = [ config.secrets.fullPaths."naemon/resources.cfg" ]; 154 paths = [ config.secrets.fullPaths."naemon/resources.cfg" ];