From 2bcc666fd591dbf7543fc550ff1772508695a746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 5 Apr 2020 15:57:20 +0200 Subject: Upgrade to nixos-unstable --- modules/naemon/default.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'modules/naemon') 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 } ]; - users.users = optionalAttrs (cfg.user == "naemon") (singleton - { - name = "naemon"; + users.users = optionalAttrs (cfg.user == "naemon") { + naemon = { group = cfg.group; uid = config.ids.uids.nagios; extraGroups = [ "keys" ]; - }); - users.groups = optionalAttrs (cfg.user == "naemon") (singleton - { - name = "naemon"; - gid = config.ids.gids.nagios; - }); + }; + }; + users.groups = optionalAttrs (cfg.user == "naemon") { + naemon = { + gid = config.ids.gids.nagios; + }; + }; services.filesWatcher.naemon = { paths = [ config.secrets.fullPaths."naemon/resources.cfg" ]; -- cgit v1.2.3