Skip to content

Commit b15e37c

Browse files
committed
Fix unused package option in flake.nix
1 parent 0c0064b commit b15e37c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flake.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
description = "Timeout for incoming HTTP requests";
9797
type = types.str;
9898
};
99-
pkg = mkOption {
99+
package = mkOption {
100100
default = rgit;
101101
description = "rgit package to use";
102102
type = types.package;
@@ -119,7 +119,7 @@
119119
path = [ pkgs.git ];
120120
serviceConfig = {
121121
Type = "exec";
122-
ExecStart = "${self.packages.default."${system}"}/bin/rgit --request-timeout ${cfg.requestTimeout} --db-store ${cfg.dbStorePath} ${cfg.bindAddress} ${cfg.repositoryStorePath}";
122+
ExecStart = "${cfg.package}/bin/rgit --request-timeout ${cfg.requestTimeout} --db-store ${cfg.dbStorePath} ${cfg.bindAddress} ${cfg.repositoryStorePath}";
123123
Restart = "on-failure";
124124

125125
User = "rgit";

0 commit comments

Comments
 (0)