From 883ec25a6206e9a4359fbdb4743d59e1e68fd9ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Fri, 6 Feb 2026 23:09:46 +0100 Subject: [PATCH] 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 --- module.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module.nix b/module.nix index 5ef4d05..5260c65 100644 --- a/module.nix +++ b/module.nix @@ -85,6 +85,12 @@ in wantedBy = [ "multi-user.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 = { User = cfg.user; Group = cfg.group;