Open RedEtherbloom opened 4 weeks ago
The bug in home-manager should be fixed, but during testing I discovered that the git-sync version in nixpkgs is outdated, resulting in a similar bug with whitespaces.
PR bumping the git-sync version in nixpkgs has been linked for documentation.
looks good
I would advocate for keeping this issue open until the second required upstream fix(https://github.com/simonthum/git-sync/issues/33) has been released and pushed to nixpkgs, to avoid a weird state where an issue is listed and merged but not fixed, in case someone else stumbles onto it.
Are you following the right branch?
Is there an existing issue for this?
Issue description
This happens due to an improper unit environment. Example error message:
Example code:
Reason in code: https://github.com/nix-community/home-manager/blob/e83414058edd339148dc142a8437edb9450574c8/modules/services/git-sync.nix#L19
Path gets written verbatim to Environment variable in systemd unit. The resulting environment variable gets rejected by sysemd as invalid.
PR is in the works, I will link it to this issue later.
Maintainer CC
@colonelpanic8 @cab404 @ryane
System information