diff options
Diffstat (limited to 'modules/naemon/default.nix')
-rw-r--r-- | modules/naemon/default.nix | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/naemon/default.nix b/modules/naemon/default.nix index 976de69..60a75b3 100644 --- a/modules/naemon/default.nix +++ b/modules/naemon/default.nix | |||
@@ -124,9 +124,8 @@ in | |||
124 | 124 | ||
125 | 125 | ||
126 | config = mkIf cfg.enable { | 126 | config = mkIf cfg.enable { |
127 | secrets.keys = [ | 127 | secrets.keys = { |
128 | { | 128 | "naemon/resources.cfg" = { |
129 | dest = "naemon/resources.cfg"; | ||
130 | user = cfg.user; | 129 | user = cfg.user; |
131 | group = cfg.group; | 130 | group = cfg.group; |
132 | permissions = "0400"; | 131 | permissions = "0400"; |
@@ -134,8 +133,8 @@ in | |||
134 | $USER1$=${pkgs.monitoring-plugins}/libexec | 133 | $USER1$=${pkgs.monitoring-plugins}/libexec |
135 | ${cfg.extraResource} | 134 | ${cfg.extraResource} |
136 | ''; | 135 | ''; |
137 | } | 136 | }; |
138 | ]; | 137 | }; |
139 | 138 | ||
140 | users.users = optionalAttrs (cfg.user == "naemon") { | 139 | users.users = optionalAttrs (cfg.user == "naemon") { |
141 | naemon = { | 140 | naemon = { |