diff --git a/base/services/smartd.nix b/base/services/smartd.nix index e21755c..de71e85 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