1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

added option to specify which packages are available to the system incrontab

recommendation by @jtojnar and @maurer
This commit is contained in:
Aaron Andersen 2018-08-29 00:43:28 +00:00
parent 3d1091eb5b
commit d9943e6bba

View file

@ -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";