move power-profiles-daemon to hardwareModules

This commit is contained in:
Aly Raffauf 2024-06-26 22:22:14 -04:00
parent 575149a3a0
commit 84e1f6cf34
4 changed files with 2 additions and 8 deletions

View file

@ -7,6 +7,7 @@ inputs: {
imports = [
./cpu
./gpu
./laptop
./options.nix
./ssd
];

View file

@ -1,11 +1,10 @@
{
config,
inputs,
lib,
pkgs,
...
}: {
config = lib.mkIf config.ar.base.power-profiles-daemon.enable {
config = lib.mkIf config.ar.hardware.laptop {
services = {
power-profiles-daemon.enable = true;
upower.enable = true;

View file

@ -10,7 +10,6 @@
./nix
./nixpkgs
./plymouth
./power-profiles-daemon
./sound
./zramSwap
];

View file

@ -247,11 +247,6 @@
default = config.ar.base.enable;
type = lib.types.bool;
};
power-profiles-daemon.enable = lib.mkOption {
description = "Power Profiles Daemon for power management.";
default = config.ar.base.enable;
type = lib.types.bool;
};
zramSwap = {
enable = lib.mkOption {
description = "zram swap.";