!XQQVyIbcAcHFvzmcTl:nixos.org

NixOS GNOME

395 Members
A room for maintainers of GNOME & GNOME-adjacent desktop environments (Xfce, Cinnamon, Pantheon...)87 Servers

Load older messages


SenderMessageTime
28 Jun 2026
@elvishjerricco:matrix.orgElvishJerricco putting LD_LIBRARY_PATH on unix_chkpwd solves it for that little fraction of the problem, but it's going to come up more generally 05:11:29
@elvishjerricco:matrix.orgElvishJerricco so we actually just can't migrate off /etc/shadow like I'd want to until we have a solution for getting all apps to use nss_systemd 05:12:11
@emilazy:matrix.orgemily I think just doing Arian's (I think) plan of replacing nsncd with a hardcoded nss_systemd is probably the way 05:15:16
@elvishjerricco:matrix.orgElvishJerriccoif that's actually possible that'd be good. Can you just hard code one of those in nsswitch.conf, and do we have to be concerned about ABI compatibility, especially since it links openssl?05:16:03
@emilazy:matrix.orgemilyone per glibc05:18:10
@emilazy:matrix.orgemilyand are you sure nss_systemd links OpenSSL?05:18:31
@emilazy:matrix.orgemilyI guess it's plausible05:18:42
@elvishjerricco:matrix.orgElvishJerricco
$ ldd /run/current-system/systemd/lib/libnss_systemd.so.2 | rg openssl
        libcrypto.so.3 => /nix/store/y18pnbvfarnilsmgayswvi1khaw9wbsc-openssl-3.6.2/lib/libcrypto.so.3 (0x0000780a8f943000)
05:18:49
@elvishjerricco:matrix.orgElvishJerriccohow's that work?05:19:13
@emilazy:matrix.orgemily just patch _PATH_NSSWITCH_CONF 05:24:42
@emilazy:matrix.orgemilymodulo bootstrapping05:24:45
@elvishjerricco:matrix.orgElvishJerriccoah, ok05:24:55
@emilazy:matrix.orgemilyhardcode a .so path or whatever05:25:00
@elvishjerricco:matrix.orgElvishJerriccothe people who get mad about nixpkgs packages not working on other distros won't like how that breaks their LDAP NSS module on a non-userdbd distro, and other obscure things :P05:26:02
@emilazy:matrix.orgemilydoesn't the userdb interface return NSS records?05:30:24
@emilazy:matrix.orgemilyso it'll be fine because your system systemd has the system glibc with that nsswitch configuration05:30:45
@emilazy:matrix.orgemilyand will forward records on appropriately05:30:55
@elvishjerricco:matrix.orgElvishJerricco yea that's why I said "non-userdbd distro"; that won't work without /run/systemd/userdb/io.systemd.NameServiceSwitch 05:32:40
@elvishjerricco:matrix.orgElvishJerriccowas mostly just joking about the obscurity of the scenarios where it won't work, assuming userdbd becomes widespread in the near future05:33:31
@emilazy:matrix.orgemilyah, I missed the non-userdbd part.05:33:59
@emilazy:matrix.orgemilyisn't Nixpkgs already broken on such setups?05:34:33
@emilazy:matrix.orgemilyit will load the NSS modules with an incompatible glibc05:34:41
@elvishjerricco:matrix.orgElvishJerriccois it?05:34:41
@elvishjerricco:matrix.orgElvishJerriccooh, yea, probably :P05:34:51
@emilazy:matrix.orgemilynot like anything sets up nsncd on non-NixOS05:34:55
@elvishjerricco:matrix.orgElvishJerriccoI would have thought the glibcs were compatible enough for that to work usually but I have no idea05:35:28
@emilazy:matrix.orgemilytbh I don't understand how NSS works on non-NixOS Linux with Nixpkgs in general, I guess you just get lucky mixing glibcs?05:35:38
@elvishjerricco:matrix.orgElvishJerriccoyea, that's pretty much what I thought05:35:51
@elvishjerricco:matrix.orgElvishJerriccoglibc is supposed to try to be ABI stable, so it probably does work for some sets of glibc versions, but it also probably explodes at random05:36:25
@emilazy:matrix.orgemilyABI stability only goes one way. there's a reason people build binaries on ancient CentOS05:39:31

Show newer messages


Back to Room ListRoom Version: 6