| 1 Feb 2026 |
| chr0n0s joined the room. | 17:02:24 |
| Pooh San joined the room. | 18:22:40 |
| Johnny joined the room. | 18:40:36 |
Johnny | Hello, 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 | It always updates the flake and tries to build it | 18:45:05 |
K900 | But if nothing has changed, it will just hit the existing store path | 18:45:16 |
hexa | it will have to eval the flake output to decide that | 18:45:53 |
hexa | some of which can be accelerated by the flake eval cache | 18:46:01 |
Johnny | Okay, 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 | This is what I expected it to do, thank you | 19:10:34 |
| 3 Feb 2026 |
Johnny | 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 | Do I need to add Git to the PATH of the systemd job that starts the container somehow? | 22:29:59 |
Johnny | 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 | Is this for a private git? | 22:40:11 |
Johnny | No | 22:40:18 |
Johnny | But it seems like it doesn't get far enough for that to matter anyway | 22:40:35 |
eveeifyeve | Second question is this a github? | 22:40:57 |
Johnny | it is not | 22:41:03 |
Johnny | 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 | Try git+https://codeberg.org/johnnyjayjay/canteendle#container. | 22:44:12 |
Johnny | how's that gonna change anything about the fact that git isn't present | 22:44:33 |
eveeifyeve | It uses builtin fetchers. | 22:44:55 |
eveeifyeve | * It uses builtin fetchers, so git shouldn't be required. | 22:45:06 |
eveeifyeve | * It uses builtin fetchers, so git shouldn't be required, I think. | 22:45:23 |
Johnny | I don't really get it, but I'll try | 22:45:44 |
Johnny | Yeah, no difference | 22:46:18 |
eveeifyeve | What is your nix version? | 22:47:58 |
Johnny | Latest unstable currently | 22:48:08 |
eveeifyeve | Could you please provide me the log? | 22:51:26 |
eveeifyeve | * Could you please provide me the log, that you produce? | 22:51:37 |