From 925fc182e5ea9b87c3a62e80f5a20be4e827cd3b Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Thu, 18 May 2023 13:39:06 +0200 Subject: config: networking: hostapd: disable low-level bridging --- config/networking/default.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'config/networking/default.nix') diff --git a/config/networking/default.nix b/config/networking/default.nix index ea7e17e..eb189eb 100644 --- a/config/networking/default.nix +++ b/config/networking/default.nix @@ -4,13 +4,19 @@ let cfg = config.personal.networking; in { - imports = [ ./services ]; + imports = [ ./bridges.nix ./services ]; options.personal.networking = { networks = lib.mkOption { type = with lib.types; attrsOf (submodule { options = { + device = lib.mkOption { + type = with lib.types; nullOr str; + default = null; + description = "Name of the network device."; + example = "wlp1s0"; + }; interface = lib.mkOption { type = lib.types.str; description = "Name of the network interface."; @@ -54,12 +60,14 @@ in { }; }; wan = { - interface = "wlp1s0"; + device = "wlp1s0"; + interface = "wan"; subnet = "192.168.2"; machines = { self.address = "192.168.2.1"; }; }; iot = { - interface = "wlp5s0"; + device = "wlp5s0"; + interface = "iot"; subnet = "192.168.3"; machines = { self.address = "192.168.3.1"; }; }; @@ -76,6 +84,7 @@ in { inherit (machines.livebox) address; }; + useDHCP = false; dhcpcd.enable = false; interfaces = lib.concatMapAttrs (name: value: { "${value.interface}" = { @@ -86,6 +95,7 @@ in { }; }; }) cfg.networks; + }; }; } -- cgit v1.2.3