summaryrefslogtreecommitdiff
path: root/modules/nixos/hardware/ssd.nix
blob: 2995d93b46a9b7088fcba7af9c27bdd15668aa9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
  };
}