diff options
Diffstat (limited to '')
| -rw-r--r-- | modules/core/audio.nix | 1 | ||||
| -rw-r--r-- | modules/laptop.nix | 19 | ||||
| -rw-r--r-- | modules/wm_utils.nix | 2 | 
3 files changed, 22 insertions, 0 deletions
diff --git a/modules/core/audio.nix b/modules/core/audio.nix index f358c2c..9e45d9e 100644 --- a/modules/core/audio.nix +++ b/modules/core/audio.nix @@ -9,5 +9,6 @@      alsa.support32Bit = true;      pulse.enable = true;      jack.enable = true; +    wireplumber.enable = true;    };  } diff --git a/modules/laptop.nix b/modules/laptop.nix new file mode 100644 index 0000000..f619d78 --- /dev/null +++ b/modules/laptop.nix @@ -0,0 +1,19 @@ +{ pkgs, ... }: + +{ +  services.tlp = { +    enable = true; +    settings = { +      CPU_SCALING_GOVERNOR_ON_AC = "performance"; +      CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + +      CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; +      CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; + +      CPU_MIN_PERF_ON_AC = 0; +      CPU_MAX_PERF_ON_AC = 100; +      CPU_MIN_PERF_ON_BAT = 0; +      CPU_MAX_PERF_ON_BAT = 20; +    }; +  }; +} diff --git a/modules/wm_utils.nix b/modules/wm_utils.nix index 850b29e..9160d9c 100644 --- a/modules/wm_utils.nix +++ b/modules/wm_utils.nix @@ -16,4 +16,6 @@      sway-launcher-desktop    ]; + +  services.dbus.enable = true;  }  | 
