summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2015-10-28 19:44:55 +0100
committerPeter Simons <simons@cryp.to>2015-10-28 19:50:06 +0100
commitb8dd60aaa633a52dcc60b766176810f49d7a62a3 (patch)
tree409897df5d161863186cf1199cfc7ff06c34bbb4
parentc44a593aa43bba6a0708f6f36065a514a5110613 (diff)
downloadnixpkgs-b8dd60aaa633a52dcc60b766176810f49d7a62a3.tar
nixpkgs-b8dd60aaa633a52dcc60b766176810f49d7a62a3.tar.gz
nixpkgs-b8dd60aaa633a52dcc60b766176810f49d7a62a3.tar.bz2
nixpkgs-b8dd60aaa633a52dcc60b766176810f49d7a62a3.tar.lz
nixpkgs-b8dd60aaa633a52dcc60b766176810f49d7a62a3.tar.xz
nixpkgs-b8dd60aaa633a52dcc60b766176810f49d7a62a3.tar.zst
nixpkgs-b8dd60aaa633a52dcc60b766176810f49d7a62a3.zip
nixos: remove redundant services.autossh.enable option
The service is enabled automatically when 'session' is non-empty.
-rw-r--r--nixos/modules/services/networking/autossh.nix12
1 files changed, 1 insertions, 11 deletions
diff --git a/nixos/modules/services/networking/autossh.nix b/nixos/modules/services/networking/autossh.nix
index 0294abc1248..6ae454be966 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
 
   };
 }
-
-