diff options
author | Peter Simons <simons@cryp.to> | 2015-10-28 19:44:55 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2015-10-28 19:50:06 +0100 |
commit | b8dd60aaa633a52dcc60b766176810f49d7a62a3 (patch) | |
tree | 409897df5d161863186cf1199cfc7ff06c34bbb4 /nixos/modules/services/networking/autossh.nix | |
parent | c44a593aa43bba6a0708f6f36065a514a5110613 (diff) |
nixos: remove redundant services.autossh.enable option
The service is enabled automatically when 'session' is non-empty.
Diffstat (limited to 'nixos/modules/services/networking/autossh.nix')
-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 0294abc124879..6ae454be96626 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 }; } - - |