!BgJZHVOYkwVcEKLAyM:nixos.org

NixOS Deployments

1244 Members
NixOS Deployment tooling291 Servers

Load older messages


SenderMessageTime
3 Feb 2026
@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
@eveeifyeve:matrix.orgeveeifyeve* In the container he means. Eg. containers.<name>.flake = "";23:21:12
@eveeifyeve:matrix.orgeveeifyeve * In the container he means. Eg. containers.\<name>.flake = ""; 23:21:21
@eveeifyeve:matrix.orgeveeifyeve * In the container he means containers.\<name>.flake = ""; 23:21:28
@eveeifyeve:matrix.orgeveeifyeve * In the container eg. containers.\<name>.flake = ""; he means. 23:21:46
@eveeifyeve:matrix.orgeveeifyeve * In the container eg. containers.<name>.flake = ""; he means. 23:22:06
@lillecarl:matrix.orglillecarlThat'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:matrix.orgeveeifyeveYeah.23:24:38
4 Feb 2026
@tiferrei:tiferrei.comtiferrei changed their profile picture.02:28:51
@oahong:matrix.orghhao joined the room.02:51:02
@crony:cronyakatsuki.xyzCrony Akatsuki joined the room.08:55:01
@twix:elendigsoftware.cctwix ⚡️ left the room.10:31:28
@tiferrei:tiferrei.comtiferrei left the room.14:28:33
5 Feb 2026
@marddl:obermui.de6543 joined the room.01:47:27
@marddl:obermui.de6543 changed their display name from Marddl to 6543.01:48:52
@johnny:yatrix.orgJohnny

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:yatrix.orgJohnnyI feel like I'm misunderstanding these options in general though10:39:53
@johnny:yatrix.orgJohnny 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:yatrix.orgJohnnyIdeally without having to set UIDs manually10:50:46
19 May 2021
@eelco:nixos.org@eelco:nixos.org changed the history visibility to "world_readable" from "shared".15:40:47
@eelco:nixos.org@eelco:nixos.org changed the join rule to "public" from "invite".15:40:48
@cw:kernelpanic.cafecw (28 cycles) joined the room.15:42:05
@sumner:sumnerevans.comsumner joined the room.15:45:28
@grahamc:nixos.org@grahamc:nixos.org 16:00:27
@eelco:nixos.org@eelco:nixos.orgchanged room power levels.16:02:54
@immae:matrix.orgimmae joined the room.16:03:18

Show newer messages


Back to Room ListRoom Version: 6