From f3bd2bce23bc80ef129fe9c29e9a8ec93470da13 Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 25 Aug 2023 09:35:01 -0400 Subject: modules/hardware: complete nvidia + add ssd module --- modules/nixos/hardware/ssd.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 modules/nixos/hardware/ssd.nix (limited to 'modules/nixos/hardware/ssd.nix') diff --git a/modules/nixos/hardware/ssd.nix b/modules/nixos/hardware/ssd.nix new file mode 100644 index 0000000..2995d93 --- /dev/null +++ b/modules/nixos/hardware/ssd.nix @@ -0,0 +1,15 @@ +{ + config, + lib, + ... +}: let + cfg = config.hardware.ssd; + inherit (lib) mkEnableOption mkIf; +in { + options.hardware.ssd.enable = mkEnableOption "ssd settings"; + + config = mkIf cfg.enable { + hardware.enable = true; + services.fstrim.enable = true; + }; +} -- cgit v1.2.3