!BgJZHVOYkwVcEKLAyM:nixos.org

NixOS Deployments

1278 Members
NixOS Deployment tooling307 Servers

Load older messages


SenderMessageTime
1 Feb 2026
@.chr0n0s.:matrix.orgchr0n0s joined the room.17:02:24
@bolster4152:matrix.orgPooh San joined the room.18:22:40
@johnny:yatrix.orgJohnny joined the room.18:40:36
@johnny:yatrix.orgJohnnyHello, I have a question about how system.autoUpgrade works with a flake referenced with a Git URL. Does it always fetch and build the flake? Does it only build the flake if something has changed in the flake definition? Or some other condition?18:42:41
@k900:0upti.meK900It always updates the flake and tries to build it18:45:05
@k900:0upti.meK900But if nothing has changed, it will just hit the existing store path18:45:16
@hexa:lossy.networkhexait will have to eval the flake output to decide that18:45:53
@hexa:lossy.networkhexasome of which can be accelerated by the flake eval cache18:46:01
@johnny:yatrix.orgJohnnyOkay, so always fetch flake at the specified location, eval flake, build flake (which effectively does nothing if flake hasn't changed)19:10:18
@johnny:yatrix.orgJohnnyThis is what I expected it to do, thank you19:10:34
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

Show newer messages


Back to Room ListRoom Version: 6