about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-09-13 15:46:11 +0900
committersefidel <contact@sefidel.net>2023-09-13 15:46:11 +0900
commitef6dd49bb693fa924065687d539b4642c44f9bb4 (patch)
tree22560b959c95304de3d2b7692c3b9777441a067c /modules
parent654a68a613e4914089bbaded610b513e4fd157e7 (diff)
downloadnixrc-ef6dd49bb693fa924065687d539b4642c44f9bb4.tar.gz
nixrc-ef6dd49bb693fa924065687d539b4642c44f9bb4.zip
feat(nixos): add haruka
Diffstat (limited to 'modules')
-rw-r--r--modules/laptop.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/laptop.nix b/modules/laptop.nix
new file mode 100644
index 0000000..7820a29
--- /dev/null
+++ b/modules/laptop.nix
@@ -0,0 +1,11 @@
+{ config, lib, ... }:
+
+{
+  # Laptop-specific system tweaks
+
+  # Don't protect kernel image to enable hibernation
+  security.protectKernelImage = lib.mkForce false;
+
+  # Enable auto trimming on SSDs
+  services.fstrim.enable = lib.mkDefault (!config.services.zfs.trim.enable);
+}