diff options
| author | adikro <adikro@disroot.org> | 2025-12-20 03:14:45 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2025-12-20 03:14:45 +0100 |
| commit | 791bc419b6dac7c70951981ef6b34cdf85828470 (patch) | |
| tree | 56d0962fdf829ae942feb1344763e54dbc3c89a3 /sys/core/networking.nix | |
| parent | e60410393cea222b16743a1a87f29c06b9b3543b (diff) | |
absolutely massive rewrite, made (almost) everything modular with changes to come
Diffstat (limited to 'sys/core/networking.nix')
| -rw-r--r-- | sys/core/networking.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/core/networking.nix b/sys/core/networking.nix new file mode 100644 index 0000000..aa8e606 --- /dev/null +++ b/sys/core/networking.nix @@ -0,0 +1,21 @@ +{ config, lib, ... }: +let + cfg = config.szpont.sys.core.network; +in +{ + options.szpont.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; + }; +} |
