nixos: remove redundant services.autossh.enable option

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

Changed files
+1 -11
nixos
modules
services
networking
+1 -11
nixos/modules/services/networking/autossh.nix
···
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 = {
···
###### implementation
-
config = mkIf cfg.enable {
+
config = mkIf (cfg.sessions != []) {
systemd.services =
···
};
}
-
-