mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-01-19 02:13:06 +01:00
21 lines
397 B
Nix
21 lines
397 B
Nix
{
|
|
lib,
|
|
namespace,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkIf mkEnableOption;
|
|
cfg = config.${namespace}.common.networking;
|
|
in {
|
|
options.${namespace}.common.networking = {
|
|
enable = mkEnableOption "Whether to enable networking through NetworkManager.";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
networking.networkmanager = {
|
|
enable = true;
|
|
wifi.powersave = false;
|
|
};
|
|
};
|
|
}
|