aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/apps/icinga2.nix3
1 files changed, 1 insertions, 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 <itl>
include <plugins>
@@ -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" ];