about summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-30 20:06:00 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-30 20:06:00 +0200
commit22daf4be998a706cdd780ab5b8b29752b079a302 (patch)
tree22089545f6a9b8b305be4b0f217e927458356684 /hosts
parentPackages: Add mov-cli package (diff)
downloadnixos-config-22daf4be998a706cdd780ab5b8b29752b079a302.tar.gz
nixos-config-22daf4be998a706cdd780ab5b8b29752b079a302.tar.bz2
nixos-config-22daf4be998a706cdd780ab5b8b29752b079a302.zip
Luna: Add tlp service
Diffstat (limited to 'hosts')
-rw-r--r--hosts/luna/default.nix1
-rw-r--r--hosts/luna/hardware.nix2
2 files changed, 2 insertions, 1 deletions
diff --git a/hosts/luna/default.nix b/hosts/luna/default.nix
index 0ebec80..0ae0a60 100644
--- a/hosts/luna/default.nix
+++ b/hosts/luna/default.nix
@@ -12,7 +12,6 @@
   services = {
     # Configure keymap in X11
     xserver.layout = "gb";
-    fstrim.enable = true;
     logind.extraConfig = ''
       # don’t shutdown when power button is short-pressed
       HandlePowerKey=ignore
diff --git a/hosts/luna/hardware.nix b/hosts/luna/hardware.nix
index ade190f..e99b98e 100644
--- a/hosts/luna/hardware.nix
+++ b/hosts/luna/hardware.nix
@@ -49,6 +49,8 @@ in
       # Enable touchpad support (enabled default in most desktopManager).
       synaptics.enable = true;
     };
+    fstrim.enable = true;
+    tlp.enable = true;
   };
 
   hardware = {