| 8 Oct 2025 |
ElvishJerricco | actually, when I try that I get: error: Expected a module, but found a value of type "merge".) | 08:03:27 |
ElvishJerricco | * actually, when I try that I get: error: Expected a module, but found a value of type "merge". | 08:03:30 |
x10an14 | 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 | Why are you using networkmanager on a hetzner box | 08:05:00 |
K900 | In the first place | 08:05:06 |
x10an14 | 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 | that would be quite shocking | 08:05:32 |
ElvishJerricco | it should not be fundamentally changing how the module system works | 08:05:42 |
K900 | Oh wait | 08:06:03 |
ElvishJerricco | 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 | 08:06:03 |
K900 | You're NOT using networkmanager | 08:06:06 |
K900 | You're using scripted networking | 08:06:12 |
K900 | And trying to apply networkmanager options to it | 08:06:16 |
K900 | I assume it's this?
┃ │ ┌─ ⏸ unit-dbus-broker.service | 08:06:32 |
K900 | * I assume it's this? https://github.com/slackhq/nebula | 08:06:38 |
x10an14 | 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 | services.resolved.enable = true is what you want I'm pretty sure | 08:07:22 |
K900 | And then hopefully it does the right thing | 08:07:27 |
K900 | And if it doesn't, it's fundamentally broken | 08:07:43 |
x10an14 | 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 | K900 the networking.useDHCP = true; line in that diff is a - line. I think they were trying to switch? | 08:08:16 |
K900 | So it's your own custom nameserver? | 08:08:20 |
K900 | Not something Nebula provides for you? | 08:08:25 |
K900 | Then just put it in networking.nameservers and it should work | 08:08:43 |
ElvishJerricco | (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 | 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 |
K900 | ^ | 08:10:13 |
x10an14 | In reply to @k900:0upti.me Then just put it in networking.nameservers and it should work But I could not find any documentation that this would keep/respect DHCP DNS entries, or if it did, which are tried first. And I'm a little scared of messing up the network config and having to rebuild the VM from scratch | 08:12:34 |
K900 | It will be used first, but that's generally not an issue, and you can always SSH into your VM even if DNS is broken | 08:12:55 |
magic_rb | resloved will try the hardconfigured DNS first, but you can get it to ignore DHCP DNS entries completely. Or specify that you want to only use those for certain domains. I do that on my laptop, .lan is configured to go to my home router, everything else goes to my DoT proxy on my home server | 08:16:28 |