feat(modules/nixos): deactivate Wi-Fi powersave

feat(modules/home): add default user icon
This commit is contained in:
Jo 2024-12-25 23:35:51 +01:00
parent e6e85a9310
commit be96d3962f
2 changed files with 9 additions and 4 deletions

BIN
modules/home/user/icon.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

View file

@ -1,16 +1,21 @@
{
lib,
namespace,
config,
...
}: with lib; with lib.${namespace};
}:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.${namespace}.common.networking;
in {
options.${namespace}.common.networking = { enable = mkEnableOption "networking"; };
options.${namespace}.common.networking = {
enable = mkEnableOption "Whether to enable networking through NetworkManager.";
};
config = mkIf cfg.enable {
networking.networkmanager.enable = true;
networking.networkmanager = {
enable = true;
wifi.powersave = false;
};
};
}