diff --git a/nixos/modules/services/networking/autossh.nix b/nixos/modules/services/networking/autossh.nix index 0294abc12487..6ae454be9662 100644 --- a/nixos/modules/services/networking/autossh.nix +++ b/nixos/modules/services/networking/autossh.nix @@ -16,14 +16,6 @@ in services.autossh = { - enable = mkOption { - type = types.bool; - default = false; - description = '' - Whether to enable the AutoSSH, the SSH sessions manager - ''; - }; - sessions = mkOption { type = types.listOf (types.submodule { options = { @@ -83,7 +75,7 @@ in ###### implementation - config = mkIf cfg.enable { + config = mkIf (cfg.sessions != []) { systemd.services = @@ -120,5 +112,3 @@ in }; } - -