mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 21:32:23 +03:00
nixos: remove redundant services.autossh.enable option
The service is enabled automatically when 'session' is non-empty.
This commit is contained in:
parent
c44a593aa4
commit
b8dd60aaa6
@ -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
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user