diff options
author | Nick Cao <nickcao@nichi.co> | 2023-12-05 13:17:29 -0500 |
---|---|---|
committer | Nick Cao <nickcao@nichi.co> | 2023-12-05 13:21:30 -0500 |
commit | 0588b4bda0daabbb6c2568c36092856de15c0aef (patch) | |
tree | d0f74d5e2880e4e6469d728abe3f322bf43b5e49 /nixos/modules/services/hardware | |
parent | b3caa5f50a90a069b1f9596b48be6cb95d94171b (diff) | |
download | nixlib-0588b4bda0daabbb6c2568c36092856de15c0aef.tar nixlib-0588b4bda0daabbb6c2568c36092856de15c0aef.tar.gz nixlib-0588b4bda0daabbb6c2568c36092856de15c0aef.tar.bz2 nixlib-0588b4bda0daabbb6c2568c36092856de15c0aef.tar.lz nixlib-0588b4bda0daabbb6c2568c36092856de15c0aef.tar.xz nixlib-0588b4bda0daabbb6c2568c36092856de15c0aef.tar.zst nixlib-0588b4bda0daabbb6c2568c36092856de15c0aef.zip |
nixos/power-profiles-daemon: drop with lib
Diffstat (limited to 'nixos/modules/services/hardware')
-rw-r--r-- | nixos/modules/services/hardware/power-profiles-daemon.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/nixos/modules/services/hardware/power-profiles-daemon.nix b/nixos/modules/services/hardware/power-profiles-daemon.nix index 101da01b4a71..86b8e4267933 100644 --- a/nixos/modules/services/hardware/power-profiles-daemon.nix +++ b/nixos/modules/services/hardware/power-profiles-daemon.nix @@ -1,7 +1,5 @@ { config, lib, pkgs, ... }: -with lib; - let cfg = config.services.power-profiles-daemon; package = pkgs.power-profiles-daemon; @@ -15,8 +13,8 @@ in services.power-profiles-daemon = { - enable = mkOption { - type = types.bool; + enable = lib.mkOption { + type = lib.types.bool; default = false; description = lib.mdDoc '' Whether to enable power-profiles-daemon, a DBus daemon that allows @@ -31,7 +29,7 @@ in ###### implementation - config = mkIf cfg.enable { + config = lib.mkIf cfg.enable { assertions = [ { assertion = !config.services.tlp.enable; |