1 parent 4dc6528 commit a55976eCopy full SHA for a55976e
1 file changed
module.nix
@@ -21,6 +21,10 @@ in
21
options.services.pullomatic = {
22
enable = mkEnableOption "pullomatic";
23
24
+ package = mkPackageOption pkgs "pullomatic" {
25
+ default = pullomatic;
26
+ };
27
+
28
repos = mkOption {
29
type = types.attrsOf (repoFormat.type);
30
default = { };
@@ -39,7 +43,7 @@ in
39
43
serviceConfig = {
40
44
Type = "simple";
41
45
Restart = "always";
42
- ExecStart = "${pullomatic}/bin/pullomatic --config '${repos}'";
46
+ ExecStart = "${cfg.package}/bin/pullomatic --config '${repos}'";
47
};
48
49
0 commit comments