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 = [ imports = [
./cpu ./cpu
./gpu ./gpu
./laptop
./options.nix ./options.nix
./ssd ./ssd
]; ];

View file

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

View file

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

View file

@ -247,11 +247,6 @@
default = config.ar.base.enable; default = config.ar.base.enable;
type = lib.types.bool; 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 = { zramSwap = {
enable = lib.mkOption { enable = lib.mkOption {
description = "zram swap."; description = "zram swap.";