diff options
-rw-r--r-- | nixos/modules/services/networking/autossh.nix | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/nixos/modules/services/networking/autossh.nix b/nixos/modules/services/networking/autossh.nix index 0294abc1248..6ae454be966 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 }; } - - |