From 274b909971b98b71bc6374ea545e25a8e508f698 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 29 May 2021 16:44:34 +0200 Subject: [PATCH] modules: hardware: move 'upower' --- modules/default.nix | 1 - modules/hardware/default.nix | 1 + modules/{ => hardware}/upower.nix | 4 ++-- profiles/laptop.nix | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename modules/{ => hardware}/upower.nix (91%) diff --git a/modules/default.nix b/modules/default.nix index 6094ddd..f534f66 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -10,7 +10,6 @@ ./media.nix ./nix.nix ./packages.nix - ./upower.nix ./users.nix ]; } diff --git a/modules/hardware/default.nix b/modules/hardware/default.nix index 292bd3c..1740080 100644 --- a/modules/hardware/default.nix +++ b/modules/hardware/default.nix @@ -7,5 +7,6 @@ ./ergodox.nix ./networking.nix ./sound.nix + ./upower.nix ]; } diff --git a/modules/upower.nix b/modules/hardware/upower.nix similarity index 91% rename from modules/upower.nix rename to modules/hardware/upower.nix index 8c46c1d..f21b9d2 100644 --- a/modules/upower.nix +++ b/modules/hardware/upower.nix @@ -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 = { diff --git a/profiles/laptop.nix b/profiles/laptop.nix index f834ac8..20a29d7 100644 --- a/profiles/laptop.nix +++ b/profiles/laptop.nix @@ -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;