diff options
author | sefidel <contact@sefidel.net> | 2023-09-13 15:46:11 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-09-13 15:46:11 +0900 |
commit | ef6dd49bb693fa924065687d539b4642c44f9bb4 (patch) | |
tree | 22560b959c95304de3d2b7692c3b9777441a067c /modules | |
parent | 654a68a613e4914089bbaded610b513e4fd157e7 (diff) | |
download | nixrc-ef6dd49bb693fa924065687d539b4642c44f9bb4.tar.gz nixrc-ef6dd49bb693fa924065687d539b4642c44f9bb4.zip |
feat(nixos): add haruka
Diffstat (limited to 'modules')
-rw-r--r-- | modules/laptop.nix | 11 |
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); +} |