From 7c6737f81261a9662ca7254f6eddd2fb15a94446 Mon Sep 17 00:00:00 2001 From: arunoruto Date: Sat, 21 Sep 2024 01:13:20 +0200 Subject: [PATCH] Add ppd explicitlz --- modules/nixos/services/default.nix | 1 + modules/nixos/services/ppd.nix | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/nixos/services/default.nix b/modules/nixos/services/default.nix index f0ffcb5..16b8fdb 100644 --- a/modules/nixos/services/default.nix +++ b/modules/nixos/services/default.nix @@ -15,6 +15,7 @@ ./secrets.nix ./ssh.nix ./tlp.nix + ./ppd.nix ]; davmail.enable = lib.mkDefault false; diff --git a/modules/nixos/services/ppd.nix b/modules/nixos/services/ppd.nix index 6c0a27f..2443cb9 100644 --- a/modules/nixos/services/ppd.nix +++ b/modules/nixos/services/ppd.nix @@ -1,4 +1,5 @@ { + # pkgs, lib, config, ... @@ -10,8 +11,10 @@ ''; config = lib.mkIf config.ppd.enable { - services = { - power-profiles-daemon.enable = lib.mkDefault true; - powerManagement.powertop.enable = lib.mkDefault false; + services.power-profiles-daemon.enable = lib.mkDefault true; + powerManagement.powertop.enable = lib.mkDefault false; + # environment.systemPackages = with pkgs; [ + # powertop + # ]; }; }