lol

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 17 services.autossh = { 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 sessions = mkOption { 28 type = types.listOf (types.submodule { 29 options = { ··· 83 84 ###### implementation 85 86 - config = mkIf cfg.enable { 87 88 systemd.services = 89 ··· 120 121 }; 122 } 123 - 124 -
··· 16 17 services.autossh = { 18 19 sessions = mkOption { 20 type = types.listOf (types.submodule { 21 options = { ··· 75 76 ###### implementation 77 78 + config = mkIf (cfg.sessions != []) { 79 80 systemd.services = 81 ··· 112 113 }; 114 }