From 27513ef4bbf65da060c50e89c83597e2ebacb935 Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Wed, 22 Nov 2023 23:14:34 +0100 Subject: [PATCH] ssd --- flake.nix | 2 ++ modules/hardware/ssd.nix | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 modules/hardware/ssd.nix diff --git a/flake.nix b/flake.nix index 1ffe171..6cd20f2 100644 --- a/flake.nix +++ b/flake.nix @@ -67,6 +67,8 @@ ./modules/paperless.nix ./modules/kavita.nix ./modules/netdata.nix + ### Hardware ### + ./modules/hardware/ssd.nix home-manager.nixosModules.home-manager agenix.nixosModules.default { diff --git a/modules/hardware/ssd.nix b/modules/hardware/ssd.nix new file mode 100644 index 0000000..5866c1c --- /dev/null +++ b/modules/hardware/ssd.nix @@ -0,0 +1,3 @@ +{ + services.fstrim.enable = true; +}