diff options
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); +} |