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,6 +1,9 @@
{ config, ... }: { lib, config, ... }:
{ {
options.networking.enable = lib.mkEnableOption "network configuration";
config = lib.mkIf config.networking.enable {
networking = { networking = {
hostName = config.host.name; hostName = config.host.name;
wireless.iwd.enable = true; wireless.iwd.enable = true;
@@ -8,4 +11,5 @@
nftables.enable = true; nftables.enable = true;
firewall.enable = true; firewall.enable = true;
}; };
};
} }