dotfiles/modules/networkmanager/default.nix

26 lines
374 B
Nix
Raw Normal View History

2025-01-28 08:20:50 +00:00
{
lib,
config,
...
}:
with lib;
let
2025-01-28 09:42:20 +00:00
cfg = config.modules.networkmanager;
2025-01-28 08:20:50 +00:00
in
{
options.modules.networkmanager = {
enable = mkEnableOption "networkmanager";
};
config = mkIf cfg.enable {
machine.sudo-groups = [ "networkmanager" ];
networking = {
networkmanager = {
enable = true;
wifi.powersave = true;
};
};
};
}