modules.services.smartd: disable for vps

This commit is contained in:
2025-02-13 12:45:42 +08:00
parent b358685ec8
commit b51f983321
2 changed files with 6 additions and 1 deletions

View File

@@ -42,6 +42,7 @@ inputs:
root = { device = "/"; hashTableSizeMB = 4096; threads = 4; };
nix = { device = "/nix"; hashTableSizeMB = 128; };
};
smartd = {};
};
};
};

View File

@@ -3,7 +3,11 @@ inputs:
imports = inputs.localLib.findModules ./.;
options.nixos.services = let inherit (inputs.lib) mkOption types; in
{
smartd = mkOption { type = types.nullOr (types.submodule {}); default = {}; };
smartd = mkOption
{
type = types.nullOr (types.submodule {});
default = if builtins.elem inputs.config.nixos.model.type [ "desktop" "server" ] then {} else null;
};
noisetorch = mkOption
{
type = types.nullOr (types.submodule {});