fix: add nix and git to PATH for flake collector
The systemd service runs in a sandboxed environment without the usual PATH. Add nix and git to the service path when flake collector is enabled so it can run `nix flake metadata` on git+https:// URLs. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -85,6 +85,12 @@ in
|
|||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
|
|
||||||
|
# nix is required for flake collector, git for git+https:// URLs
|
||||||
|
path = lib.mkIf cfg.flake.enable [
|
||||||
|
config.nix.package
|
||||||
|
pkgs.git
|
||||||
|
];
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
|
|||||||
Reference in New Issue
Block a user