From b8dd60aaa633a52dcc60b766176810f49d7a62a3 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 28 Oct 2015 19:44:55 +0100 Subject: [PATCH] nixos: remove redundant services.autossh.enable option The service is enabled automatically when 'session' is non-empty. --- nixos/modules/services/networking/autossh.nix | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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 }; } - -