!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

865 Members
Declaratively manage your switching, routing, wireless, tunneling and more. | Don't rely on `networking.*` use systemd-networkd and NetworkManager instead. | Set `SYSTEMD_LOG_LEVEL=debug` to debug networking issues with networkd | No bad nft puns, please. | Room recommendations: #sysops:nixos.org248 Servers

Load older messages


SenderMessageTime
8 Oct 2025
@elvishjerricco:matrix.orgElvishJerricco should just be { imports = ...; config = lib.mkMerge [ ... ]; } 07:56:16
@x10an14:matrix.orgx10an14
In reply to @elvishjerricco:matrix.org
x10an14: { imports = ...; } // lib.mkMerge [ ... ] seems busted
Nix evaluates it without issue, but sure, I think that's a reasonable suggestion, thanks!
08:01:10
@elvishjerricco:matrix.orgElvishJerricco frankly I'm not sure what it evaluates too, once through the module system 08:01:31
@elvishjerricco:matrix.orgElvishJerriccoit might just be dropping stuff, I dunno08:01:37
@elvishjerricco:matrix.orgElvishJerricco actually, when I try that I get: error: Expected a module, but found a value of type "merge".) 08:03:27
@elvishjerricco:matrix.orgElvishJerricco * actually, when I try that I get: error: Expected a module, but found a value of type "merge". 08:03:30
@x10an14:matrix.orgx10an14
In reply to @k900:0upti.me
Just use resolved

Hmm, that requires more research... Got any hints/directions to suggest?

This diff spawned out of using "stock" nixos 25.11 + facter on a hetzner box, and wanting to add a custom DNS as top priority, with DHCP dns entries maintained after the custom one

08:04:44
@k900:0upti.meK900Why are you using networkmanager on a hetzner box08:05:00
@k900:0upti.meK900In the first place08:05:06
@x10an14:matrix.orgx10an14
In reply to @elvishjerricco:matrix.org
actually, when I try that I get: error: Expected a module, but found a value of type "merge".
Maybe flake-parts modules does some magic for me?
08:05:18
@elvishjerricco:matrix.orgElvishJerriccothat would be quite shocking08:05:32
@elvishjerricco:matrix.orgElvishJerriccoit should not be fundamentally changing how the module system works08:05:42
@k900:0upti.meK900Oh wait08:06:03
@elvishjerricco:matrix.orgElvishJerriccoI'm more worried that you're not actually importing this module and that's why it isn't throwing an error or doing what you expected it to do08:06:03
@k900:0upti.meK900You're NOT using networkmanager08:06:06
@k900:0upti.meK900You're using scripted networking08:06:12
@k900:0upti.meK900And trying to apply networkmanager options to it08:06:16
@k900:0upti.meK900I assume it's this? ┃ │ ┌─ ⏸ unit-dbus-broker.service08:06:32
@k900:0upti.meK900* I assume it's this? https://github.com/slackhq/nebula08:06:38
@x10an14:matrix.orgx10an14
In reply to @k900:0upti.me
Why are you using networkmanager on a hetzner box
Best suggestion I found after 2h of web search and 4+ years of nixos usage searching for "add dns server to nixos without removing DHCP"
08:07:06
@k900:0upti.meK900 services.resolved.enable = true is what you want I'm pretty sure 08:07:22
@k900:0upti.meK900And then hopefully it does the right thing08:07:27
@k900:0upti.meK900And if it doesn't, it's fundamentally broken08:07:43
@x10an14:matrix.orgx10an14
In reply to @k900:0upti.me
I assume it's this? https://github.com/slackhq/nebula
It's a DNS on that VPN I want that box to use as primary DNS, yes
08:08:09
@elvishjerricco:matrix.orgElvishJerricco K900 the networking.useDHCP = true; line in that diff is a - line. I think they were trying to switch? 08:08:16
@k900:0upti.meK900So it's your own custom nameserver?08:08:20
@k900:0upti.meK900Not something Nebula provides for you?08:08:25
@k900:0upti.meK900 Then just put it in networking.nameservers and it should work 08:08:43
@elvishjerricco:matrix.orgElvishJerricco(still none of this explains why you didn't get a module system eval error so I'm still not convinced this module is actually being imported)08:08:56
@x10an14:matrix.orgx10an14
In reply to @elvishjerricco:matrix.org
I'm more worried that you're not actually importing this module and that's why it isn't throwing an error or doing what you expected it to do
It's not throwing an error, I thought I turned on networkmanager to make use of insertNamserver, and couldn't see that effectuated
08:09:46

Show newer messages


Back to Room ListRoom Version: 6