feat(networking): add enable option

This commit is contained in:
2026-05-22 20:20:06 +02:00
parent a11e6b6a11
commit aefae7cdf2

View File

@@ -1,11 +1,15 @@
{ config, ... }: { lib, config, ... }:
{ {
networking = { options.networking.enable = lib.mkEnableOption "network configuration";
hostName = config.host.name;
wireless.iwd.enable = true; config = lib.mkIf config.networking.enable {
networkmanager.wifi.backend = "iwd"; networking = {
nftables.enable = true; hostName = config.host.name;
firewall.enable = true; wireless.iwd.enable = true;
networkmanager.wifi.backend = "iwd";
nftables.enable = true;
firewall.enable = true;
};
}; };
} }