!BgJZHVOYkwVcEKLAyM:nixos.org

NixOS Deployments

1227 Members
NixOS Deployment tooling284 Servers

Load older messages


SenderMessageTime
3 Feb 2026
@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

There are no newer messages yet.


Back to Room ListRoom Version: 6