!BgJZHVOYkwVcEKLAyM:nixos.org

NixOS Deployments

1227 Members
NixOS Deployment tooling284 Servers

Load older messages


SenderMessageTime
3 Feb 2026
@eveeifyeve:matrix.orgeveeifyeve* Could you please provide me the log, that you produce?22:51:37
@eveeifyeve:matrix.orgeveeifyeveOh wait you did.22:52:38
@eveeifyeve:matrix.orgeveeifyeveYeah you need git on the machine.22:52:51
@eveeifyeve:matrix.orgeveeifyeveadd Git to system packages.22:53:13
@johnny:yatrix.orgJohnnyIt is already installed, is the thing22:54:35
@johnny:yatrix.orgJohnnyI also tried adding it to the systemd service PATH directly, that didn't change anything either22:54:55
@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
@johnny:yatrix.orgJohnny Another question, can you enable autoUpgrade for a container? 12:30:43

There are no newer messages yet.


Back to Room ListRoom Version: 6