modules: hardware: move 'upower'

This commit is contained in:
Bruno BELANYI 2021-05-29 16:44:34 +02:00
parent af67d04992
commit 31f8ec6e98
4 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,6 @@
./media.nix
./nix.nix
./packages.nix
./upower.nix
./users.nix
];
}

View file

@ -7,5 +7,6 @@
./ergodox.nix
./networking.nix
./sound.nix
./upower.nix
];
}

View file

@ -1,9 +1,9 @@
{ config, lib, pkgs, ... }:
let
cfg = config.my.modules.upower;
cfg = config.my.hardware.upower;
in
{
options.my.modules.upower = with lib; {
options.my.hardware.upower = with lib; {
enable = mkEnableOption "upower configuration";
levels = {

View file

@ -15,7 +15,7 @@ in
my.services.tlp.enable = true;
# Enable upower power management
my.modules.upower.enable = true;
my.hardware.upower.enable = true;
# Enable battery notifications
my.home.power-alert.enable = true;