diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-07-29 06:54:49 -0500 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-07-29 06:54:49 -0500 |
| commit | e29dd8a2283399b7e046937340509d5aec4b52ba (patch) | |
| tree | aa679e70fe55cb620698ab1695eadf23f8a2cdba /modules/system/nixos/networking/networkd.nix | |
| parent | d2aecd69c17fa64305c07333686576152432993d (diff) | |
changes
Diffstat (limited to 'modules/system/nixos/networking/networkd.nix')
| -rw-r--r-- | modules/system/nixos/networking/networkd.nix | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/modules/system/nixos/networking/networkd.nix b/modules/system/nixos/networking/networkd.nix deleted file mode 100644 index 2c7f580..0000000 --- a/modules/system/nixos/networking/networkd.nix +++ /dev/null @@ -1,44 +0,0 @@ -{ - # lib, - config, - ... -}: let - cfg = config.collinux.system.network; - dhcp_enabled = cfg.static == null; - - device = - if (cfg.wireless == null) - then "eth0" - else "wl*"; -in { - networking.useNetworkd = true; - systemd.network = { - enable = true; - - wait-online = { - enable = true; - ignoredInterfaces = ["docker0"]; - anyInterface = true; - }; - - networks."11-default" = - if dhcp_enabled - then { - name = device; - networkConfig.DHCP = "yes"; - - # never accept dhcp dns - dhcpV4Config.UseDNS = "no"; - dhcpV6Config.UseDNS = "no"; - } - else { - name = device; - networkConfig = { - Address = cfg.static.ip; - Gateway = cfg.static.gateway; - DHCP = "no"; - # DNS is managed by systemd-resolved (not specified here) - }; - }; - }; -} |
