2024-09-06 17:43:30 +02:00
|
|
|
{
|
|
|
|
lib,
|
2024-12-03 18:38:19 +01:00
|
|
|
namespace,
|
2024-09-06 17:43:30 +02:00
|
|
|
config,
|
|
|
|
...
|
2024-12-25 23:35:51 +01:00
|
|
|
}:
|
2024-09-06 17:43:30 +02:00
|
|
|
let
|
2024-12-25 23:35:51 +01:00
|
|
|
inherit (lib) mkIf mkEnableOption;
|
2024-09-06 17:43:30 +02:00
|
|
|
cfg = config.${namespace}.common.networking;
|
|
|
|
in {
|
2024-12-25 23:35:51 +01:00
|
|
|
options.${namespace}.common.networking = {
|
|
|
|
enable = mkEnableOption "Whether to enable networking through NetworkManager.";
|
|
|
|
};
|
2024-09-06 17:43:30 +02:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2024-12-25 23:35:51 +01:00
|
|
|
networking.networkmanager = {
|
|
|
|
enable = true;
|
|
|
|
wifi.powersave = false;
|
|
|
|
};
|
2024-09-06 17:43:30 +02:00
|
|
|
};
|
|
|
|
}
|