Added networkmanager
This commit is contained in:
parent
66c619883b
commit
115a27d1c6
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
|
|
Loading…
Reference in New Issue