From d9943e6bba6c325c8d7bf11f4c91ad00f861e566 Mon Sep 17 00:00:00 2001 From: Aaron Andersen Date: Wed, 29 Aug 2018 00:43:28 +0000 Subject: [PATCH] added option to specify which packages are available to the system incrontab recommendation by @jtojnar and @maurer --- nixos/modules/services/monitoring/incron.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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";