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 ./media.nix
./nix.nix ./nix.nix
./packages.nix ./packages.nix
./upower.nix
./users.nix ./users.nix
]; ];
} }

View file

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

View file

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

View file

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