| 26 Nov 2025 |
Jens Petersen | I see | 13:16:45 |
Jens Petersen | Okay maybe it is needed without nix-daemon then | 13:17:03 |
dramforever | no, same with nix not-daemon | 13:17:24 |
Jens Petersen | Hmm I see | 13:17:35 |
dramforever | nix is generally happy to start working with absolutely nothing | 13:17:45 |
dramforever | see: the "diverted store" --store /path/to/some/local/dir | 13:18:03 |
Jens Petersen | okay maybe I will experiment more later then, thanks | 13:18:12 |
dramforever | if you ship some store paths to begin with then you should ship the corresponding db | 13:18:19 |
dramforever | either as a file or some exported textual format | 13:18:32 |
dramforever | * either as a sqlite db file or ~~some exported textual format~~ nix-store --dump-db | 13:18:59 |
dramforever | * either as a sqlite db file or some exported textual format nix-store --dump-db | 13:19:07 |
Jens Petersen | Right now I need to rebuild the whole nix package to change /nix, so it is a bit expensive to experiment (I believe you of course) | 13:19:52 |
dramforever | but if you somehow ship just /usr/bin/nix, in general, nix would happily do everything by itself, starting all the way from creating /nix. but in practice users might not like it if installing nix from fedora leaves nix "installed" but in a way where the daemon is not working | 13:20:39 |
Jens Petersen | Okay I can try force removing /nix and seeing what it happens that is easy enough | 13:21:21 |
Jens Petersen | Anyway regardless we like to own the relevant directories for rpm packaging :-) | 13:23:04 |
Jens Petersen | * Anyway regardless indeed we like to own the relevant directories for rpm packaging :-) | 13:23:26 |
dramforever | this is fine but going into the details of what exactly in /nix/var/nix is very suspicious | 13:23:50 |
dramforever | * this is fine but going into the details of what exactly is in /nix/var/nix is very suspicious | 13:23:59 |
Jens Petersen | Okay | 13:23:59 |
Jens Petersen | * Okay and sounds like more directories may show up anyway 🤷♂️ from what you said | 13:24:28 |
Jens Petersen | So maybe it is not necessary indeed - also/further currently nixbld owns the fedora /nix/var/nix but seems that is also incorrect... | 13:26:09 |
Jens Petersen | I wonder if that was the case in the past? | 13:26:46 |
Jens Petersen | * Okay and sounds like more directories may show up there anyway 🤷♂️ from what you said | 13:27:12 |
Jens Petersen | * So maybe it is not necessary indeed - also/further currently nixbld owns the fedora /nix/var/nix but seems that may also be incorrect for nix-daemon hmm | 13:49:38 |
hexa | unlikely | 14:03:53 |
hexa | the daemon who owns those runs as root | 14:04:05 |
Jens Petersen | Okay then maybe something I introduced for non nix-daemon | 14:12:32 |
dramforever | still doesn't really make sense since for non nix-daemon only one user has access to nix | 14:13:40 |
Mic92 | Yeah, if you already provide a Fedora package than nix-daemon is the way to go. | 14:14:16 |
Jens Petersen | Mm okay but nixbld group also works without nix-daemon but maybe that is wrong.
Earlier in my personal repo I was suggesting user to own /nix/* but I thought nixbld is better | 14:15:14 |