From ef6dd49bb693fa924065687d539b4642c44f9bb4 Mon Sep 17 00:00:00 2001 From: sefidel Date: Wed, 13 Sep 2023 15:46:11 +0900 Subject: feat(nixos): add haruka --- modules/laptop.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 modules/laptop.nix (limited to 'modules/laptop.nix') 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); +} -- cgit 1.4.1