| 3 Feb 2026 |
eveeifyeve | * Could you please provide me the log, that you produce? | 22:51:37 |
eveeifyeve | Oh wait you did. | 22:52:38 |
eveeifyeve | Yeah you need git on the machine. | 22:52:51 |
eveeifyeve | add Git to system packages. | 22:53:13 |
Johnny | It is already installed, is the thing | 22:54:35 |
Johnny | I also tried adding it to the systemd service PATH directly, that didn't change anything either | 22:54:55 |
Johnny | Nevermind, I messed that part up before | 22:57:06 |
Johnny | I fixed it now
systemd.services."container@canteendle".path = [ pkgs.git ]; | 22:57:18 |
Johnny | 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 | nix build ./myflake#nixosConfigurations.hostname.config.system.build.toplevel or something, is that what you're refering to? | 23:20:11 |
eveeifyeve | In the container he means. | 23:20:55 |
eveeifyeve | * In the container he means. Eg. containers.<name>.flake = ""; | 23:21:12 |
eveeifyeve | * In the container he means. Eg. containers.\<name>.flake = ""; | 23:21:21 |
eveeifyeve | * In the container he means containers.\<name>.flake = ""; | 23:21:28 |
eveeifyeve | * In the container eg. containers.\<name>.flake = ""; he means. | 23:21:46 |
eveeifyeve | * In the container eg. containers.<name>.flake = ""; he means. | 23:22:06 |
lillecarl | That's impure so he'd have to either eval twice or https://noogle.dev/f/builtins/parseFlakeRef + https://noogle.dev/f/builtins/fetchTree to get it within | 23:24:14 |
eveeifyeve | Yeah. | 23:24:38 |
| 4 Feb 2026 |
| tiferrei changed their profile picture. | 02:28:51 |
| hhao joined the room. | 02:51:02 |
| Crony Akatsuki joined the room. | 08:55:01 |
| twix ⚡️ left the room. | 10:31:28 |
| tiferrei left the room. | 14:28:33 |
| 5 Feb 2026 |
| 6543 joined the room. | 01:47:27 |
| 6543 changed their display name from Marddl to 6543. | 01:48:52 |
Johnny | Still struggling with a container deployment, this time with bind mounts and file ownership. What I want: Mount a file into a container and have it be owned by a specific user I found this relevant issue: https://github.com/NixOS/nixpkgs/issues/329530
I'm trying to follow a workaround that was posted there:
bindMounts.localConfig = {
mountPoint = "/run/canteendle/config.local.edn:idmap";
hostPath = "/run/agenix.d/canteendle/config.local.edn";
isReadOnly = true;
};
The file in question on the host is owned by canteendle:canteendle.
Starting this container fails with the following error:
Failed to map ids for bind mount /tmp/nspawn-root-TVO12v/run/canteendle/config.local.edn: Invalid argument
I'm wondering why idmap doesn't work
| 10:35:32 |
Johnny | I feel like I'm misunderstanding these options in general though | 10:39:53 |
Johnny | Basically I just want the user canteendle inside the container to be able to read a file owned by the host user canteendle. | 10:49:26 |
Johnny | Ideally without having to set UIDs manually | 10:50:46 |
Johnny | Another question, can you enable autoUpgrade for a container? | 12:30:43 |