mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 01:29:24 +08:00
modules.services.smartd: disable for vps
This commit is contained in:
@@ -42,6 +42,7 @@ inputs:
|
||||
root = { device = "/"; hashTableSizeMB = 4096; threads = 4; };
|
||||
nix = { device = "/nix"; hashTableSizeMB = 128; };
|
||||
};
|
||||
smartd = {};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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 {});
|
||||
|
||||
Reference in New Issue
Block a user