Skip to content

Commit a55976e

Browse files
committed
feat: Allow to overwrite package
1 parent 4dc6528 commit a55976e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

module.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ in
2121
options.services.pullomatic = {
2222
enable = mkEnableOption "pullomatic";
2323

24+
package = mkPackageOption pkgs "pullomatic" {
25+
default = pullomatic;
26+
};
27+
2428
repos = mkOption {
2529
type = types.attrsOf (repoFormat.type);
2630
default = { };
@@ -39,7 +43,7 @@ in
3943
serviceConfig = {
4044
Type = "simple";
4145
Restart = "always";
42-
ExecStart = "${pullomatic}/bin/pullomatic --config '${repos}'";
46+
ExecStart = "${cfg.package}/bin/pullomatic --config '${repos}'";
4347
};
4448
};
4549
};

0 commit comments

Comments
 (0)