summaryrefslogtreecommitdiffstats
path: root/common/pc/laptop
diff options
context:
space:
mode:
Diffstat (limited to 'common/pc/laptop')
-rw-r--r--common/pc/laptop/default.nix11
-rw-r--r--common/pc/laptop/hdd/default.nix8
l---------common/pc/laptop/ssd1
3 files changed, 20 insertions, 0 deletions
diff --git a/common/pc/laptop/default.nix b/common/pc/laptop/default.nix
new file mode 100644
index 0000000..305c160
--- /dev/null
+++ b/common/pc/laptop/default.nix
@@ -0,0 +1,11 @@
+{ lib, ... }:
+
+{
+ imports = [ ../. ];
+
+ boot.kernel.sysctl = {
+ "vm.laptop_mode" = lib.mkDefault 5;
+ };
+
+ services.tlp.enable = lib.mkDefault true;
+}
diff --git a/common/pc/laptop/hdd/default.nix b/common/pc/laptop/hdd/default.nix
new file mode 100644
index 0000000..63f29d4
--- /dev/null
+++ b/common/pc/laptop/hdd/default.nix
@@ -0,0 +1,8 @@
+{ lib, ... }:
+
+{
+ imports = [ ../../hdd ];
+
+ # Hard disk protection if the laptop falls:
+ services.hdapsd.enable = lib.mkDefault true;
+}
diff --git a/common/pc/laptop/ssd b/common/pc/laptop/ssd
new file mode 120000
index 0000000..e313834
--- /dev/null
+++ b/common/pc/laptop/ssd
@@ -0,0 +1 @@
+../ssd \ No newline at end of file