nixos: remove redundant services.autossh.enable option

The service is enabled automatically when 'session' is non-empty.

+1 -11
+1 -11
nixos/modules/services/networking/autossh.nix
··· 16 16 17 17 services.autossh = { 18 18 19 - enable = mkOption { 20 - type = types.bool; 21 - default = false; 22 - description = '' 23 - Whether to enable the AutoSSH, the SSH sessions manager 24 - ''; 25 - }; 26 - 27 19 sessions = mkOption { 28 20 type = types.listOf (types.submodule { 29 21 options = { ··· 83 75 84 76 ###### implementation 85 77 86 - config = mkIf cfg.enable { 78 + config = mkIf (cfg.sessions != []) { 87 79 88 80 systemd.services = 89 81 ··· 120 112 121 113 }; 122 114 } 123 - 124 -