Added power profiles daemon
This commit is contained in:
@ -10,6 +10,7 @@
|
|||||||
# hardware
|
# hardware
|
||||||
cachy.enable = true;
|
cachy.enable = true;
|
||||||
bluetooth.enable = true;
|
bluetooth.enable = true;
|
||||||
|
powerprofiles.enable = true;
|
||||||
tlp.enable = false;
|
tlp.enable = false;
|
||||||
printing.enable = true;
|
printing.enable = true;
|
||||||
|
|
||||||
|
17
modules/system/powerprofiles/default.nix
Normal file
17
modules/system/powerprofiles/default.nix
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{ config, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.systemSettings.powerprofiles;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
systemSettings.powerprofiles = {
|
||||||
|
enable = lib.mkEnableOption "Enable power profiles daemon";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services.power-profiles-daemon = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user