mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-01-18 09:53:06 +01:00
feat(modules/nixos): deactivate Wi-Fi powersave
feat(modules/home): add default user icon
This commit is contained in:
parent
e6e85a9310
commit
be96d3962f
2 changed files with 9 additions and 4 deletions
BIN
modules/home/user/icon.jpg
Normal file
BIN
modules/home/user/icon.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 72 KiB |
|
@ -1,16 +1,21 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
namespace,
|
namespace,
|
||||||
|
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: with lib; with lib.${namespace};
|
}:
|
||||||
let
|
let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
cfg = config.${namespace}.common.networking;
|
cfg = config.${namespace}.common.networking;
|
||||||
in {
|
in {
|
||||||
options.${namespace}.common.networking = { enable = mkEnableOption "networking"; };
|
options.${namespace}.common.networking = {
|
||||||
|
enable = mkEnableOption "Whether to enable networking through NetworkManager.";
|
||||||
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager = {
|
||||||
|
enable = true;
|
||||||
|
wifi.powersave = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue