diff options
-rw-r--r-- | nixos/modules/services/monitoring/incron.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nixos/modules/services/monitoring/incron.nix b/nixos/modules/services/monitoring/incron.nix index c850bad881c4..b366597fb2b2 100644 --- a/nixos/modules/services/monitoring/incron.nix +++ b/nixos/modules/services/monitoring/incron.nix @@ -53,6 +53,13 @@ in ''; }; + extraPackages = mkOption { + type = types.listOf types.package; + default = []; + example = "[ pkgs.rsync ];"; + description = "Extra packages available to the system incrontab."; + }; + }; }; @@ -84,7 +91,7 @@ in systemd.services.incron = { description = "File system events scheduler"; wantedBy = [ "multi-user.target" ]; - path = [ config.system.path ]; + path = cfg.extraPackages; preStart = "mkdir -m 710 -p /var/spool/incron"; serviceConfig.Type = "forking"; serviceConfig.PIDFile = "/run/incrond.pid"; |