Added networkmanager

This commit is contained in:
Jan-Bulthuis 2025-01-28 09:20:50 +01:00
parent 66c619883b
commit 115a27d1c6
4 changed files with 27 additions and 2 deletions

View File

@ -61,7 +61,7 @@ in
neovim.enable = true;
systemd-boot.enable = true;
tuigreet.enable = true;
# tailscale.enable = true;
networkmanager.enable = true;
};
# TODO: Remove everything below, it is here out of convenience and should be elsewhere

View File

@ -21,6 +21,7 @@ with lib;
./greeter/greetd/tuigreet.nix
./locale/default.nix
./neovim/default.nix
./networkmanager/default.nix
./power-saving/default.nix
./sound/pipewire.nix
./users/default.nix

View File

@ -0,0 +1,25 @@
{
lib,
config,
...
}:
with lib;
let
cfg = config.modules.power-saving;
in
{
options.modules.networkmanager = {
enable = mkEnableOption "networkmanager";
};
config = mkIf cfg.enable {
machine.sudo-groups = [ "networkmanager" ];
networking = {
networkmanager = {
enable = true;
wifi.powersave = true;
};
};
};
}

View File

@ -1,7 +1,6 @@
{
lib,
config,
pkgs,
...
}: