!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

901 Members
on your Router! Declaratively manage your switching, routing, wireless, tunneling and more.269 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
29 Jun 2025
@elvishjerricco:matrix.orgElvishJerriccoWell04:24:54
@elvishjerricco:matrix.orgElvishJerricco whatever we generate with nixos-generate-config should work for those who decide to disable useNetworkd 04:25:09
@emilazy:matrix.orgemilyI don't understand why04:25:57
@emilazy:matrix.orgemilywhy should generated configs be written to accommodate a migration option?04:26:18
@elvishjerricco:matrix.orgElvishJerriccoI still don't see it as a migration option04:26:36
@elvishjerricco:matrix.orgElvishJerricco I think the networking.* things are here to stay 04:26:43
@elvishjerricco:matrix.orgElvishJerriccoat least, many of them04:26:54
@emilazy:matrix.orgemilythat isn't what I meant (but we're returning to the long conversation this started with)04:27:01
@emilazy:matrix.orgemilychoosing scripted networking is a migration thing04:27:12
@emilazy:matrix.orgemilya new user who doesn't know how to adjust their networking config but wants to opt into scripted networking is not a relevant use case04:27:24
@emilazy:matrix.orgemilythe only reason we don't remove scripted networking tomorrow is existing users, not new ones04:27:41
@elvishjerricco:matrix.orgElvishJerricco In an ideal world, nixos-generate-config generates as little as possible, and calls on abstractions to do the real work. That way we can improve what was generated without having to regenerate anything 04:28:18
@elvishjerricco:matrix.orgElvishJerriccoit's worse to make a bunch of specific networkd configs than it is to just enable the most abstract possible options04:28:35
@emilazy:matrix.orgemilybut networkd config is their best attempt at abstract declarative configuration already04:29:03
@elvishjerricco:matrix.orgElvishJerriccoI mean04:29:13
@elvishjerricco:matrix.orgElvishJerriccoeh04:29:14
@hexa:lossy.networkhexathe configs we generate are basic enough that we should just generate the real thing and not the abstraction04:29:28
@elvishjerricco:matrix.orgElvishJerricco useDHCP does not have a clean networkd implementation even though it is the sane default for a new thing 04:29:28
@emilazy:matrix.orgemilyby a project with much more comparative expertise at that task compared to whatever random interface we accumulated since 200604:29:33
@elvishjerricco:matrix.orgElvishJerricco I mean no, my whole point is that I don't want hardware-configuration.nix to contain any sort of ideas about how things should be implemented 04:30:15
@elvishjerricco:matrix.orgElvishJerriccobecause then it gets stale and we can't change it04:30:21
@elvishjerricco:matrix.orgElvishJerriccofor existing users04:30:25
@emilazy:matrix.orgemilynetworking should probably not be part of hardware-configuration04:30:50
@emilazy:matrix.orgemilyat least that layer of it04:30:58
@elvishjerricco:matrix.orgElvishJerricco e.g. useDHCP is implemented as Kind=!* IIRC and that's hopefully going to change one day so it would suck if that was baked into everyone's generated configs 04:31:05
@emilazy:matrix.orgemily anyway basic DHCP toggle or basic static IP is one thing, it's the more elaborate parts of networking.* that seem counterproductive to maintain forever 04:31:40
@emilazy:matrix.orgemilythere's like five options that cover 90% of NixOS setups04:31:55

Show newer messages


Back to Room ListRoom Version: 6