diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2023-05-18 13:39:06 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2023-05-20 20:13:45 +0200 |
| commit | 925fc182e5ea9b87c3a62e80f5a20be4e827cd3b (patch) | |
| tree | dc3772ee2a298fd6f39b8ab355aaecd8d5da593e /config/networking/default.nix | |
| parent | 001f53d081b78c5145cd7449f08f783bb56f35e3 (diff) | |
config: networking: hostapd: disable low-level bridging
Diffstat (limited to 'config/networking/default.nix')
| -rw-r--r-- | config/networking/default.nix | 16 |
1 files changed, 13 insertions, 3 deletions
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; + }; }; } |
