2024-06-20 16:00:59 <@james:fedora.im> !startmeeting fpc 2024-06-20 16:01:01 <@meetbot:fedora.im> Meeting started at 2024-06-20 16:00:59 UTC 2024-06-20 16:01:01 <@meetbot:fedora.im> The Meeting name is 'fpc' 2024-06-20 16:01:07 <@james:fedora.im> !topic Roll Call 2024-06-20 16:01:46 <@james:fedora.im> !hi 2024-06-20 16:01:47 <@zodbot:fedora.im> James Antill (james) 2024-06-20 16:02:30 <@carlwgeorge:matrix.org> !hi 2024-06-20 16:02:34 <@zodbot:fedora.im> Carl George (carlwgeorge) - he / him / his 2024-06-20 16:05:12 <@nhanlon:beeper.com> !hi 2024-06-20 16:05:13 <@zodbot:fedora.im> Neil Hanlon (neil) - he / him / his 2024-06-20 16:06:25 <@james:fedora.im> Carl George: How much do you not want to comment on issue 1373? 2024-06-20 16:07:34 <@carlwgeorge:matrix.org> 🤯 2024-06-20 16:08:37 <@decathorpe:fedora.im> !hi 2024-06-20 16:08:38 <@zodbot:fedora.im> Fabio Valentini (decathorpe) - he / him / his 2024-06-20 16:09:27 <@conan_kudo:matrix.org> !hi 2024-06-20 16:09:28 <@zodbot:fedora.im> Neal Gompa (ngompa) - he / him / his 2024-06-20 16:12:04 <@decathorpe:fedora.im> fwiw I don't understand the hype around nix 2024-06-20 16:12:20 <@decathorpe:fedora.im> maybe I reached "old man yelling at clod" stage of my life though 2024-06-20 16:12:57 <@carlwgeorge:matrix.org> same 2024-06-20 16:13:32 <@carlwgeorge:matrix.org> regardless, people do love it, and it would be beneficial to them to be able to `dnf install nix` 2024-06-20 16:14:02 <@decathorpe:fedora.im> true. better than curl | bash 2024-06-20 16:14:23 <@decathorpe:fedora.im> or whatever you need to do to get it 2024-06-20 16:14:28 <@conan_kudo:matrix.org> I'd really like to know if it really is that difficult to move `/nix` to `/var/nix` 2024-06-20 16:14:28 <@jsteffan:fedora.im> !hi 2024-06-20 16:14:29 <@carlwgeorge:matrix.org> i think i'm ok with an exception to let it have `/nix`. the other suggestions in the issue don't seem worth it if we're just gonna bind mount it to `/nix` anyways. 2024-06-20 16:14:30 <@zodbot:fedora.im> Jonathan Steffan (jsteffan) 2024-06-20 16:14:54 <@conan_kudo:matrix.org> because the last time we had this discussion was over `/snap` 2024-06-20 16:15:01 <@conan_kudo:matrix.org> and frankly, the same arguments kind of apply 2024-06-20 16:15:23 <@carlwgeorge:matrix.org> what was the outcome for snaps? 2024-06-20 16:15:45 <@conan_kudo:matrix.org> `/snap` was banned and snapd changed to use a subdir in `/var` 2024-06-20 16:16:20 <@conan_kudo:matrix.org> `/var/lib/snapd/snap` was what was picked 2024-06-20 16:16:24 <@decathorpe:fedora.im> nix packages that hard-code paths in /nix/store is going to be a problem 2024-06-20 16:16:34 <@decathorpe:fedora.im> not sure if that was a problem for snap too? 2024-06-20 16:16:58 <@conan_kudo:matrix.org> it's a union mount of squashfs images in their own mount namespace 2024-06-20 16:17:05 <@conan_kudo:matrix.org> they don't actually see anything 2024-06-20 16:17:24 <@conan_kudo:matrix.org> only "classic" snaps need `/snap` and a symlink does fine for that 2024-06-20 16:17:34 <@conan_kudo:matrix.org> but those types of snaps are supposed to be rare 2024-06-20 16:18:02 <@james:fedora.im> Anyone have a guess if /nix could work on ostree? 2024-06-20 16:18:36 <@conan_kudo:matrix.org> I believe no 2024-06-20 16:18:46 <@conan_kudo:matrix.org> same reason classic snaps don't work either 2024-06-20 16:18:56 <@conan_kudo:matrix.org> top level mount is a no-no 2024-06-20 16:19:52 <@decathorpe:fedora.im> well isn't that ironic 🎶 2024-06-20 16:19:56 <@james:fedora.im> Yeh, my assumption is it doesn't work now ... was just wondering if it was even plausible it might be made to work? 2024-06-20 16:20:20 <@conan_kudo:matrix.org> or rather new FHS dirs breaks things for rpm-ostree (which is ironic since it forces `/sysroot` itself) 2024-06-20 16:20:29 <@conan_kudo:matrix.org> and nobody ever asked us about that :/ 2024-06-20 16:21:25 <@james:fedora.im> Not that Colin deserves it, but a significant part of me would be fine just pointing at ostree and saying it's not possible. 2024-06-20 16:22:15 <@decathorpe:fedora.im> yeah ... rpm-ostree limitations are not a good reason to *not* do something that works in other environments 2024-06-20 16:22:45 <@james:fedora.im> It's well known that all the cool kids want tar files now, our fault for choosing cpio files ... we should have known what would be cooler. 2024-06-20 16:22:49 <@conan_kudo:matrix.org> but looking briefly at nix, it seems the nix store location is configurable 2024-06-20 16:23:26 <@conan_kudo:matrix.org> and if some nix files don't handle that properly, I would probably suspect that's an error on their part 2024-06-20 16:23:41 <@conan_kudo:matrix.org> (to clarify, build-time configurable, not runtime configurable) 2024-06-20 16:23:53 <@james:fedora.im> I read parts of the thread posted ... and it looks like people have changed the location ... it just makes it incompatible with the "normal nix" packages. But I'm a little confused about how that works anyway. 2024-06-20 16:24:28 <@carlwgeorge:matrix.org> a packaged nix command that is incompatible with most nix packages that are out there doesn't seem very useful 2024-06-20 16:25:42 <@decathorpe:fedora.im> right ... if you'd need to patch or recompile stuff you lose most of what makes it interesting 2024-06-20 16:26:46 <@james:fedora.im> So ... it's been a long time and I might be confused, but ... AIUI if you use "normal" nix to install things on Fedora, it's not going to use any of Fedora. Eg. you'll get an extra copy of glibc/fileutils/etc. which are the nix deps versions? 2024-06-20 16:27:18 <@conan_kudo:matrix.org> well, kind of? 2024-06-20 16:27:48 <@conan_kudo:matrix.org> unless it's all compiled and RPATH linked correctly (and not all nix stuff is), it can use system stuff 2024-06-20 16:28:40 <@conan_kudo:matrix.org> and Nix can be useful even in the case where you're not using it to use cached binary builds of nixpkgs, because it essentially composes something for you (whether that's an application, an image, an RPM, or something else) 2024-06-20 16:30:56 <@james:fedora.im> I guess I'm just a bit confused about what they want to do, and how they want it to act. Is "yum install nix" just a better way of starting than "curl -L https://nixos.org/nix/install | sh" ... but everything after that will be the same? 2024-06-20 16:30:56 <@nhanlon:beeper.com> right. setting up a whole development environment is also a common use 2024-06-20 16:32:01 <@carlwgeorge:matrix.org> we could say it's better to live in a copr until the upstream makes a final decision on the relocation? 2024-06-20 16:32:59 <@conan_kudo:matrix.org> well, the thing is, nix packages aren't supposed to be dependent on a particular store location 2024-06-20 16:33:15 <@conan_kudo:matrix.org> https://nix.dev/manual/nix/2.22/store/types/ 2024-06-20 16:33:34 <@carlwgeorge:matrix.org> seems they are though, based on the comment in the issue 2024-06-20 16:33:39 <@james:fedora.im> Eh, I feel like if that's our only concern then we should say that and it will help upstream ... but if we aren't going to allow it anyway then we should state that before they do a bunch of work that won't help them. 2024-06-20 16:34:03 <@conan_kudo:matrix.org> I'm not in favor of allowing `/nix` 2024-06-20 16:35:09 <@carlwgeorge:matrix.org> considering that we defacto allow `/sysroot` for rpm-ostree (even if they never asked), it might be perceived negatively if we don't allow `/nix` 2024-06-20 16:35:31 <@conan_kudo:matrix.org> by that token we'd need to reverse `/snap` 2024-06-20 16:35:39 <@conan_kudo:matrix.org> and allow it too 2024-06-20 16:35:53 <@carlwgeorge:matrix.org> ok 2024-06-20 16:35:55 <@carlwgeorge:matrix.org> at the end of the day, allowing `/nix` doesn't hurt anything 2024-06-20 16:36:08 <@conan_kudo:matrix.org> well, it breaks rpm-ostree 2024-06-20 16:36:18 <@conan_kudo:matrix.org> the nix package can never be installed on rpm-ostree systems 2024-06-20 16:36:22 <@conan_kudo:matrix.org> nor composed in it 2024-06-20 16:36:35 <@conan_kudo:matrix.org> so far, we have bent over backwards to ensure we don't do that 2024-06-20 16:36:54 <@carlwgeorge:matrix.org> for everyday run of the mill packages, following fhs is good hygiene, but for ecosystem stuff like this exceptions make sense to me 2024-06-20 16:36:56 <@conan_kudo:matrix.org> that's why we aren't even allowed to use Lua scripts in systemd and have horrible bash ports 2024-06-20 16:37:03 <@james:fedora.im> And I assume that also affects silverblue and bootc/etc. 2024-06-20 16:37:09 <@conan_kudo:matrix.org> yes 2024-06-20 16:37:15 <@conan_kudo:matrix.org> at least for the near future 2024-06-20 16:37:33 <@conan_kudo:matrix.org> bootc will eventually not require /sysroot 2024-06-20 16:37:36 <@conan_kudo:matrix.org> since there's no ostree involved 2024-06-20 16:37:52 <@conan_kudo:matrix.org> since rpm-ostree will be phased out for bootc, it's a non-issue long-term 2024-06-20 16:38:17 <@carlwgeorge:matrix.org> we could ask some of the ostree folks to comment on the issue from their perspective to gather more data before a decision 2024-06-20 16:39:13 <@conan_kudo:matrix.org> I'd rather ask the Nix people to consider moving the default nix store to `/var/nix` or ask them whether they consider a nixpkg broken in an alternate store location a bug or not 2024-06-20 16:39:38 <@conan_kudo:matrix.org> because based on the documentation it should be at least the latter 2024-06-20 16:40:03 <@conan_kudo:matrix.org> and if that's true, then ecosystem or not, bad packages are not a good enough reason to allow it 2024-06-20 16:41:51 <@carlwgeorge:matrix.org> i guess file it as a bug and see if they close it wontfix or not 2024-06-20 16:42:51 <@conan_kudo:matrix.org> I'd hope they wouldn't, because they already support alternative nix store locations for global and per-user locations 2024-06-20 16:44:29 <@carlwgeorge:matrix.org> what you're saying seems to conflict with what egoode put in the issue 2024-06-20 16:45:26 <@conan_kudo:matrix.org> my understanding is that Nix is fundamentally source based with a binary cache system 2024-06-20 16:46:01 <@conan_kudo:matrix.org> so the main issue with changing it without getting upstream to agree to change it too is that their cache is invalidated unless Nix gets handling to transpose it 2024-06-20 16:47:34 <@james:fedora.im> From the linked thread, I understand that it's impossible to handle a change without recompiling packages. 2024-06-20 16:48:26 <@conan_kudo:matrix.org> it looks like upstream Nix has been actively discussing the problem for a while 2024-06-20 16:49:47 <@conan_kudo:matrix.org> one of the most recent discussions: https://github.com/NixOS/nix/issues/9549 2024-06-20 16:52:06 <@carlwgeorge:matrix.org> hardcoding the store path rather than having it be configurable seems like a pretty big design flaw to me 2024-06-20 16:52:53 <@carlwgeorge:matrix.org> since we're running out of time, and we don't seem to be anywhere close to a decision on this, should we call it for now? 2024-06-20 16:54:06 <@conan_kudo:matrix.org> there is an RFC to move it to `/var/lib/nix` seemingly: https://github.com/NixOS/rfcs/pull/17#issuecomment-629776797 2024-06-20 16:54:41 <@conan_kudo:matrix.org> I think it might make sense for one of us (I can do it) to go and talk to Nix people upstream 2024-06-20 16:54:58 <@james:fedora.im> Yeh, although I will also mention that while nix has been around for a long time now ... you might be surprised what rust-nix-devel does. 2024-06-20 16:55:33 <@james:fedora.im> I think if you are volunteering, you are the only one ;) 2024-06-20 16:55:48 <@conan_kudo:matrix.org> there's a fair bit of threads all over discussing moving out of `/nix` 2024-06-20 16:55:57 <@conan_kudo:matrix.org> it breaks macOS, it breaks Atomic Fedora, etc. 2024-06-20 16:56:11 <@conan_kudo:matrix.org> (those are two explicitly called out examples, but I know of more, like openSUSE MicroOS) 2024-06-20 16:56:37 <@conan_kudo:matrix.org> heh 2024-06-20 16:56:59 <@conan_kudo:matrix.org> the hungry, tired, and worn state of post-conference leads to weird stream of consciousness 2024-06-20 16:58:05 <@james:fedora.im> That's fair ... I shouldn't give you a timed exam on guessing what the package described as "Python bindings for NIX" does then? 2024-06-20 16:58:55 <@conan_kudo:matrix.org> lol 2024-06-20 16:59:10 <@james:fedora.im> !endmeeting