From b15e37cfa968b2c8baa63d0574243ede63f7a50e Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Sat, 28 Sep 2024 17:56:52 +0400 Subject: [PATCH] Fix unused package option in flake.nix --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 6e39f8a..2b5f7fd 100644 --- a/flake.nix +++ b/flake.nix @@ -96,7 +96,7 @@ description = "Timeout for incoming HTTP requests"; type = types.str; }; - pkg = mkOption { + package = mkOption { default = rgit; description = "rgit package to use"; type = types.package; @@ -119,7 +119,7 @@ path = [ pkgs.git ]; serviceConfig = { Type = "exec"; - ExecStart = "${self.packages.default."${system}"}/bin/rgit --request-timeout ${cfg.requestTimeout} --db-store ${cfg.dbStorePath} ${cfg.bindAddress} ${cfg.repositoryStorePath}"; + ExecStart = "${cfg.package}/bin/rgit --request-timeout ${cfg.requestTimeout} --db-store ${cfg.dbStorePath} ${cfg.bindAddress} ${cfg.repositoryStorePath}"; Restart = "on-failure"; User = "rgit";