commit 8bcde343c5d6f2c9f24c85e668107272bb07847f
parent ec7a39aaea80c7837f8afb0b53abdc808a289280
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Sat, 28 Jun 2025 11:29:39 +0200
parent ec7a39aaea80c7837f8afb0b53abdc808a289280
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Sat, 28 Jun 2025 11:29:39 +0200
config/nixos/modules/services: add `power-profiles-daemon`
1 file changed, 27 insertions(+), 0 deletions(-)
diff --git a/config/nixos/modules/services/power-profiles-daemon.nix b/config/nixos/modules/services/power-profiles-daemon.nix @@ -0,0 +1,27 @@ +{ + povSelf, + config, + lib, + ... +}: +let + inherit (lib) types; + cfg = lib.getAttrFromPath povSelf config; + +in +{ + + options.enable = { + type = types.bool; + default = false; + }; + + config = lib.mkIf cfg.enable { + modules.filesystem.impermanence.system.dirs = [ + "/var/lib/power-profiles-daemon" + ]; + + services.power-profiles-daemon.enable = true; + }; + +}