sshd: change location of config file (#41744)
create symlink /etc/ssh/sshd_config
This commit is contained in:
parent
91be6b9f40
commit
9ef30fd56a
@ -334,7 +334,9 @@ in
|
|||||||
services.openssh.moduliFile = mkDefault "${cfgc.package}/etc/ssh/moduli";
|
services.openssh.moduliFile = mkDefault "${cfgc.package}/etc/ssh/moduli";
|
||||||
|
|
||||||
environment.etc = authKeysFiles //
|
environment.etc = authKeysFiles //
|
||||||
{ "ssh/moduli".source = cfg.moduliFile; };
|
{ "ssh/moduli".source = cfg.moduliFile;
|
||||||
|
"ssh/sshd_config".text = cfg.extraConfig;
|
||||||
|
};
|
||||||
|
|
||||||
systemd =
|
systemd =
|
||||||
let
|
let
|
||||||
@ -365,7 +367,7 @@ in
|
|||||||
{ ExecStart =
|
{ ExecStart =
|
||||||
(optionalString cfg.startWhenNeeded "-") +
|
(optionalString cfg.startWhenNeeded "-") +
|
||||||
"${cfgc.package}/bin/sshd " + (optionalString cfg.startWhenNeeded "-i ") +
|
"${cfgc.package}/bin/sshd " + (optionalString cfg.startWhenNeeded "-i ") +
|
||||||
"-f ${pkgs.writeText "sshd_config" cfg.extraConfig}";
|
"-f /etc/ssh/sshd_config";
|
||||||
KillMode = "process";
|
KillMode = "process";
|
||||||
} // (if cfg.startWhenNeeded then {
|
} // (if cfg.startWhenNeeded then {
|
||||||
StandardInput = "socket";
|
StandardInput = "socket";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user