mirror of
https://github.com/librephoenix/nixos-config
synced 2025-10-18 17:44:06 +05:30
Added power profiles daemon
This commit is contained in:
parent
2ebee8fea0
commit
9bceef73de
2 changed files with 18 additions and 0 deletions
|
@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue