| 26 Nov 2025 |
dramforever | but yeah i don't really understand what the deal with having to touch the internal structure of /nix/var/nix is | 13:12:58 |
dramforever | well, there's tmpfiles | 13:13:08 |
dramforever | but i don't get the "installation issue" | 13:13:19 |
dramforever | does fedora need to manually approve every directory under /nix/var/nix? | 13:14:35 |
Jens Petersen | dramforever: well either fedora provides /nix/var/nix/build or it doesn't - that is all (along with db/ gc.lock gcroots/ profiles/ temproots/) | 13:14:52 |
dramforever | okay but why does it need to provide those | 13:15:28 |
Jens Petersen | nixos does too, no? | 13:15:47 |
dramforever | the nix daemon will happily make one by itself if one doesn't exist | 13:16:06 |
dramforever | and also along with current-load, cgroups, profiles, userpool, just to name a few that apparently exists on my system | 13:16:31 |
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 |