services.autosuspend.checks
Checks for activity. For more information, see:
- https://autosuspend.readthedocs.io/en/latest/configuration_file.html#activity-check-configuration
- https://autosuspend.readthedocs.io/en/latest/available_checks.html
- Type
attribute set of (open submodule of section of an INI file (attrs of INI atom (null, bool, int, float or string)))- Default
{ }- Example
{ # Basic activity check configuration. # The check class name is derived from the section header (Ping in this case). # Remember to enable desired checks. They are disabled by default. Ping = { hosts = "192.168.0.7"; }; # This check is disabled. Smb.enabled = false; # Example for a custom check name. # This will use the Users check with the custom name RemoteUsers. # Custom names are necessary in case a check class is used multiple times. # Custom names can also be used for clarification. RemoteUsers = { class = "Users"; name = ".*"; terminal = ".*"; host = "[0-9].*"; }; # Here the Users activity check is used again with different settings and a different name LocalUsers = { class = "Users"; name = ".*"; terminal = ".*"; host = "localhost"; }; }- Declared
- <nixpkgs/nixos/modules/services/misc/autosuspend.nix>