From 69f98933a48ec94b167d593334c7aa621b0bcc7c Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 1 Sep 2024 01:51:34 +0200 Subject: [PATCH] common/smartd: add `smartctl` to environment packages --- base/services/smartd.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/base/services/smartd.nix b/base/services/smartd.nix index e21755cc..de71e85a 100644 --- a/base/services/smartd.nix +++ b/base/services/smartd.nix @@ -1,4 +1,8 @@ -{ ... }: +{ config, pkgs, lib, ... }: { - services.smartd.enable = true; + services.smartd.enable = lib.mkDefault true; + + environment.systemPackages = lib.optionals config.services.smartd.enable (with pkgs; [ + smartmontools + ]); } \ No newline at end of file