mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 04:51:55 -05:00
move power-profiles-daemon to hardwareModules
This commit is contained in:
parent
575149a3a0
commit
84e1f6cf34
|
@ -7,6 +7,7 @@ inputs: {
|
|||
imports = [
|
||||
./cpu
|
||||
./gpu
|
||||
./laptop
|
||||
./options.nix
|
||||
./ssd
|
||||
];
|
||||
|
|
|
@ -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;
|
|
@ -10,7 +10,6 @@
|
|||
./nix
|
||||
./nixpkgs
|
||||
./plymouth
|
||||
./power-profiles-daemon
|
||||
./sound
|
||||
./zramSwap
|
||||
];
|
||||
|
|
|
@ -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.";
|
||||
|
|
Loading…
Reference in a new issue