diff options
Diffstat (limited to 'os/core/networking.nix')
| -rw-r--r-- | os/core/networking.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/os/core/networking.nix b/os/core/networking.nix new file mode 100644 index 0000000..314feb7 --- /dev/null +++ b/os/core/networking.nix @@ -0,0 +1,20 @@ +{ config, lib, ... }: +let + cfg = config.sys.core.network; +in +{ + options.sys.core.network.enable = lib.mkEnableOption "system-wide networking setup"; + config = lib.mkIf cfg.enable { + networking = { + networkmanager = { + enable = true; + wifi.macAddress = "stable-ssid"; + ethernet.macAddress = "stable-ssid"; + }; + firewall = { + enable = true; + }; + }; + systemd.services."NetworkManager-wait-online".enable = false; + }; +} |
