summaryrefslogtreecommitdiff
path: root/machines/x/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/x/configuration.nix')
-rw-r--r--machines/x/configuration.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/machines/x/configuration.nix b/machines/x/configuration.nix
index 8f31309..62c119e 100644
--- a/machines/x/configuration.nix
+++ b/machines/x/configuration.nix
@@ -27,6 +27,16 @@
nixpkgs.config.allowUnfree = true;
nixpkgs.config.allowUnfreePredicate = _: true;
+ services.fstrim.enable = true;
+
+ services.tlp = {
+ enable = true;
+ settings = {
+ CPU_SCALING_GOVERNOR_ON_AC = "performance";
+ CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
+ }
+ }
+
networking.hostName = "x";
home-manager.users.compromyse = import ./home.nix;