!BgJZHVOYkwVcEKLAyM:nixos.org

NixOS Deployments

1227 Members
NixOS Deployment tooling284 Servers

Load older messages


SenderMessageTime
3 Feb 2026
@johnny:yatrix.orgJohnny So I have defined flake for one of my nixos containers with a Git URL. I have the container configured to auto start. But that errors with the message that git cannot be found 22:29:20
@johnny:yatrix.orgJohnnyDo I need to add Git to the PATH of the systemd job that starts the container somehow?22:29:59
@johnny:yatrix.orgJohnny

For reference:

containers.canteendle = {
  autoStart = true;
  flake = "git+https://example.com/test.git#container";
}

Results in

error: executing 'git': No such file or directory
error:
… while fetching the input 'git+https://example.com/test.git'

In the logs of the service that tries to start the container

22:39:00
@eveeifyeve:matrix.orgeveeifyeveIs this for a private git?22:40:11
@johnny:yatrix.orgJohnnyNo22:40:18
@johnny:yatrix.orgJohnnyBut it seems like it doesn't get far enough for that to matter anyway22:40:35
@eveeifyeve:matrix.orgeveeifyeveSecond question is this a github?22:40:57
@johnny:yatrix.orgJohnnyit is not22:41:03
@johnny:yatrix.orgJohnny It's a codeberg Repo, I guess there's no need to censor it flake = "git+https://codeberg.org/johnnyjayjay/canteendle.git#container" 22:41:45
@eveeifyeve:matrix.orgeveeifyeve Try git+https://codeberg.org/johnnyjayjay/canteendle#container. 22:44:12
@johnny:yatrix.orgJohnnyhow's that gonna change anything about the fact that git isn't present22:44:33
@eveeifyeve:matrix.orgeveeifyeveIt uses builtin fetchers.22:44:55
@eveeifyeve:matrix.orgeveeifyeve* It uses builtin fetchers, so git shouldn't be required.22:45:06
@eveeifyeve:matrix.orgeveeifyeve* It uses builtin fetchers, so git shouldn't be required, I think.22:45:23
@johnny:yatrix.orgJohnnyI don't really get it, but I'll try22:45:44
@johnny:yatrix.orgJohnnyYeah, no difference22:46:18
@eveeifyeve:matrix.orgeveeifyeveWhat is your nix version?22:47:58
@johnny:yatrix.orgJohnnyLatest unstable currently22:48:08
@eveeifyeve:matrix.orgeveeifyeveCould you please provide me the log?22:51:26
@eveeifyeve:matrix.orgeveeifyeve* Could you please provide me the log, that you produce?22:51:37
@eveeifyeve:matrix.orgeveeifyeveOh wait you did.22:52:38
@eveeifyeve:matrix.orgeveeifyeveYeah you need git on the machine.22:52:51
@eveeifyeve:matrix.orgeveeifyeveadd Git to system packages.22:53:13
@johnny:yatrix.orgJohnnyIt is already installed, is the thing22:54:35
@johnny:yatrix.orgJohnnyI also tried adding it to the systemd service PATH directly, that didn't change anything either22:54:55
@johnny:yatrix.orgJohnnyNevermind, I messed that part up before22:57:06
@johnny:yatrix.orgJohnny I fixed it now
systemd.services."container@canteendle".path = [ pkgs.git ];
22:57:18
@johnny:yatrix.orgJohnny I realise that my flake reference syntax is wrong. Is it possible to reference a flake nixosConfiguration output in a flake reference URL? 23:01:38
@lillecarl:matrix.orglillecarlnix build ./myflake#nixosConfigurations.hostname.config.system.build.toplevel or something, is that what you're refering to?23:20:11
@eveeifyeve:matrix.orgeveeifyeveIn the container he means.23:20:55

Show newer messages


Back to Room ListRoom Version: 6