From 132b8b7aae875a4fd8bf8388dedcd29e422c0893 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Mon, 2 Apr 2018 21:27:45 +0300 Subject: icinga2: remove RunAsGroup/RunAsUser Gone in Icinga2 2.8.2 Icinga is started as non-root user anyway. --- modules/apps/icinga2.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/apps/icinga2.nix b/modules/apps/icinga2.nix index 407dbda..6380f92 100644 --- a/modules/apps/icinga2.nix +++ b/modules/apps/icinga2.nix @@ -94,8 +94,6 @@ let icingaConf = pkgs.writeText "icinga2.conf" '' const PluginDir = "${pkgs.monitoringPlugins}/libexec" - const RunAsGroup = "${cfg.user}" - const RunAsUser = "${cfg.user}" include include @@ -341,6 +339,7 @@ in { nixsap.system.groups = [ cfg.commandGroup ]; nixsap.deployment.keyrings.${cfg.user} = filter (hasPrefix config.nixsap.deployment.keyStore) cfg.configFiles; users.users.${cfg.user}.extraGroups = [ "proc" ]; + systemd.services.icinga2 = { description = "Icinga2 daemon"; after = [ "local-fs.target" "keys.target" "network.target" ]; -- cgit v1.2.3