| 8 Oct 2025 |
ElvishJerricco | should just be { imports = ...; config = lib.mkMerge [ ... ]; } | 07:56:16 |
x10an14 | 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 | frankly I'm not sure what it evaluates too, once through the module system | 08:01:31 |
ElvishJerricco | it might just be dropping stuff, I dunno | 08:01:37 |
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 |