!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

900 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.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
@emilazy:matrix.orgemilyanyone in the 10% can use networkd or NM directly04:32:12
@elvishjerricco:matrix.orgElvishJerricco All I'm saying is that we shouldn't change nixos-generate-config. Whether we remove parts of the interface is another matter 04:32:19
@elvishjerricco:matrix.orgElvishJerricco We want hardware-configuration.nix to use abstractions 04:32:27
@elvishjerricco:matrix.orgElvishJerriccothat's actively good for us as maintainers in the long run04:32:33
@emilazy:matrix.orgemilyit already does not really do a good job at that tbh04:33:42
@emilazy:matrix.orgemilynixos-facter might achieve it more04:33:51
@elvishjerricco:matrix.orgElvishJerriccoI mean sure but we're not also going to tack that onto the todo list for this04:34:06
@emilazy:matrix.orgemilyI don't think it is really bad to expose people to networkd config. that is what they are expected to write on Arch etc.04:35:01
@elvishjerricco:matrix.orgElvishJerriccoThat isn't the point04:35:10
@elvishjerricco:matrix.orgElvishJerriccoI don't care if users are exposed to it or not04:35:18
@elvishjerricco:matrix.orgElvishJerriccoI care that what we generated one day is something we can continue to maintain the next04:35:29
@emilazy:matrix.orgemilyNixOS can't be in the game of making its own complex abstraction layers for everything in the system04:35:32
@elvishjerricco:matrix.orgElvishJerriccowe can't make changes to generated configs04:35:33
@elvishjerricco:matrix.orgElvishJerriccowe can make changes to abstraction implementations04:35:38
@emilazy:matrix.orgemilyI still think hardware-configuration is a red herring here04:35:49
@hexa:lossy.networkhexaThe users that use the unmaintained shit don't maintain the abstractions04:35:53
@elvishjerricco:matrix.orgElvishJerricco it's literally the only thing nixos-generate-config is about? 04:36:02
@emilazy:matrix.orgemily"I want DHCP by default" is configuration.nix not hardware-configuration.nix teritory04:36:04
@hexa:lossy.networkhexaWhatever we give as a configuration.nix is mutable by default04:36:14
@emilazy:matrix.orgemilyand there's no promise that configuration.nix never has to change04:36:15
@hexa:lossy.networkhexaAnd everyone manages to enable network manager on their laptop as well04:36:29

Show newer messages


Back to Room ListRoom Version: 6