| 3 Feb 2026 |
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 |
| 19 May 2021 |
| @eelco:nixos.org changed the history visibility to "world_readable" from "shared". | 15:40:47 |
| @eelco:nixos.org changed the join rule to "public" from "invite". | 15:40:48 |
| cw (28 cycles) joined the room. | 15:42:05 |
| sumner joined the room. | 15:45:28 |
| @grahamc:nixos.org | 16:00:27 |
| @eelco:nixos.orgchanged room power levels. | 16:02:54 |
| immae joined the room. | 16:03:18 |