!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

900 Members
Declaratively manage your switching, routing, wireless, tunneling and more.262 Servers

Load older messages


SenderMessageTime
29 Jun 2025
@hexa:lossy.networkhexaI hate everything about that issue02:53:12
@emilazy:matrix.orgemily "The networking.* options aren't fully supported in scripted networking + initrd anyway." :) 02:54:03
@emilazy:matrix.orgemilyI think that can be WONTFIX02:54:12
@emilazy:matrix.orgemilythere's definitely a lot of NixOS that originates from a time before there were any real abstractions in the underlying system tooling02:54:43
@emilazy:matrix.orgemilyleading to a bunch of Nix with bespoke interfaces hard-wired up to a pile of Bash spaghetti02:55:08
@emilazy:matrix.orgemilyRFC 42 comes for us all02:55:24
@hexa:lossy.networkhexaexactly02:55:38
@emilazy:matrix.orgemilyI remember how magical the idea of NixOS seemed back before systemd added declarative configuration for everything in the world though :)02:56:51
@antifuchs:asf.computerantifuchs(I’d love to use systemd-initrd with this machine but it lacks all sorts of features that would make it viable with my current configuration, most of all a tpm2 so transferring secrets over even if they’re not all that secret is annoying; also, anytime I mess up I have to do tedious work to recover it via a virtual kvm that sucks, across an ocean… so whenever systemd-initrd turns into the only option that machine gets retired; until then, I script harder)03:19:41
@elvishjerricco:matrix.orgElvishJerricco I don't believe useNetworkd by default depends on systemd initrd in any way 03:24:35
@elvishjerricco:matrix.orgElvishJerriccothe old networking in scripted initrd will be fine with it03:24:48
@elvishjerricco:matrix.orgElvishJerriccoWhat can systemd initrd not do that you need?03:25:29
@elvishjerricco:matrix.orgElvishJerriccoAFAIK the only major feature it lacks is the old LUKS nonsense, but the new LUKS stuff is better03:25:41
@elvishjerricco:matrix.orgElvishJerricco like the tpm2 is not needed to do any secrets stuff; boot.initrd.secrets is effectively implemented the same way in both scripted in systemd initrd 03:27:06
@antifuchs:asf.computerantifuchs
In reply to @elvishjerricco:matrix.org
What can systemd initrd not do that you need?
It’s mainly a problem with some modules I wrote: they expect encrypted systemd credentials for sysd-initrd; falling back on initrd secrets in scripted
03:27:21
@elvishjerricco:matrix.orgElvishJerriccothen I don't understand what the problem is03:27:58
@antifuchs:asf.computerantifuchsYeah it’s not necessary but they still end up in the nix store decrypted, which id like to avoid03:28:00
@elvishjerricco:matrix.orgElvishJerricco boot.initrd.secrets does not necessarily put secrets in the store 03:28:17
@antifuchs:asf.computerantifuchs Indeed, it’s my module. And that needs a rewrite and I’m not eager to do that because any change there can break the machine and that means a wasted afternoon of vnc recovery 03:29:19
@elvishjerricco:matrix.orgElvishJerriccoI still don't get it; presumably you've chosen not to use systemd initrd on that one machine, and therefore you're doing the scripted initrd thing, so you already have this problem.03:30:11
@antifuchs:asf.computerantifuchsHistorical baggage, all my other machines were using scripted until recently (:03:30:55
@antifuchs:asf.computerantifuchsAnyway, I’m happy to ride out the scripted world with this box, once systemd becomes the only option I’ll just grab a newer one from hetzner’s server auction I guess (expecting they have newer hardware then)03:31:55
@elvishjerricco:matrix.orgElvishJerricco... but why03:32:13
@elvishjerricco:matrix.orgElvishJerriccowhatever you did with scripted initrd is possible with systemd initrd03:32:20
@elvishjerricco:matrix.orgElvishJerriccoyou don't need to change hardware for it03:32:25
@uep:matrix.orguepi think the issue is simply the migration, see needing special kvm etc in case it doesn't work or to watch03:33:27
@antifuchs:asf.computerantifuchsI don’t think I wanna explain that on a phone keyboard or even here. It’s my course of action for now.03:33:31
@elvishjerricco:matrix.orgElvishJerricco hot take: I actually don't mind most of the networking.* interface and would be unbothered just supporting it with the networkd backend without any planned deprecation 03:36:17
@elvishjerricco:matrix.orgElvishJerricco * hot take: I actually don't mind most of the networking.* options and would be unbothered just supporting it with the networkd backend without any planned deprecation 03:36:25
@elvishjerricco:matrix.orgElvishJerricco AFAIK Arian said useNetworkd by default is good to go and I have no idea why it never happened 03:37:08

Show newer messages


Back to Room ListRoom Version: 6