puzzlevision/modules/nixos/common/networking/default.nix
Jo be96d3962f feat(modules/nixos): deactivate Wi-Fi powersave
feat(modules/home): add default user icon
2024-12-25 23:35:51 +01:00

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;
};
};
}