diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-02-27 07:57:56 -0600 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-02-27 07:57:56 -0600 |
| commit | c303524a359d2be84d825acebbf8d7e2ddd8f24a (patch) | |
| tree | af7a7537703b7989dff65478a26f5637c0d1abbd /modules/system/nixos/networking/iwd.nix | |
| parent | 1932c82d72fb74971b180f84e06bcd1724e6271b (diff) | |
refactor network config, add wireguard connection to vps
Diffstat (limited to 'modules/system/nixos/networking/iwd.nix')
| -rw-r--r-- | modules/system/nixos/networking/iwd.nix | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/modules/system/nixos/networking/iwd.nix b/modules/system/nixos/networking/iwd.nix index eea35d8..0c5bdfa 100644 --- a/modules/system/nixos/networking/iwd.nix +++ b/modules/system/nixos/networking/iwd.nix @@ -3,25 +3,21 @@ config, ... }: let - cfg = config.collinux.system.network.iwd; + cfg = config.collinux.system.network; + enabled = cfg.wireless.dynamic; in - lib.mkIf cfg.enable { + lib.mkIf enabled { networking = { wireless.iwd = { enable = true; settings = { General = { - EnableNetworkConfiguration = !config.collinux.system.network.networkd.enable; + EnableNetworkConfiguration = false; # always let networkd handle this AddressRandomization = "once"; AddressRandomizationRange = "full"; }; Network.NameResolvingService = "systemd"; # either systemd or resolvconf }; }; - - # Disable default networking stuff - dhcpcd.enable = false; - useDHCP = false; - networkmanager.enable = false; }; } |
