summaryrefslogtreecommitdiff
path: root/system-profiles/openssh
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2024-08-16 21:57:29 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2024-08-16 21:57:29 +0200
commit12793fd839de4353df35690faaadbdf9c43f29f6 (patch)
treed5c8aa6bbcada6870d99530ec6dae97c16929ac5 /system-profiles/openssh
parent43090b716dd0d03a1057f42c98c12b8595ebd47d (diff)
downloadnixos-12793fd839de4353df35690faaadbdf9c43f29f6.tar
nixos-12793fd839de4353df35690faaadbdf9c43f29f6.tar.gz
nixos-12793fd839de4353df35690faaadbdf9c43f29f6.tar.bz2
nixos-12793fd839de4353df35690faaadbdf9c43f29f6.tar.xz
nixos-12793fd839de4353df35690faaadbdf9c43f29f6.zip
...
Diffstat (limited to 'system-profiles/openssh')
-rw-r--r--system-profiles/openssh/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/system-profiles/openssh/default.nix b/system-profiles/openssh/default.nix
index 65635912..25fc354f 100644
--- a/system-profiles/openssh/default.nix
+++ b/system-profiles/openssh/default.nix
@@ -87,7 +87,7 @@ in {
87 systemd.services = mkIf cfg.enable { 87 systemd.services = mkIf cfg.enable {
88 "sshd@".serviceConfig = { 88 "sshd@".serviceConfig = {
89 ExecStart = mkForce (concatStringsSep " " ( 89 ExecStart = mkForce (concatStringsSep " " (
90 [ "-${cfg.package}/bin/sshd" "-i" "-D" "-f" "/etc/ssh/sshd_config" ] 90 [ "-${cfg.package or pkgs.openssh}/bin/sshd" "-i" "-D" "-f" "/etc/ssh/sshd_config" ]
91 ++ optional (config.sops.secrets ? "ssh_moduli") ''-o "moduliFile ''${CREDENTIALS_DIRECTORY}/ssh_moduli"'' 91 ++ optional (config.sops.secrets ? "ssh_moduli") ''-o "moduliFile ''${CREDENTIALS_DIRECTORY}/ssh_moduli"''
92 ++ optional cfg.staticHostKeys ''-o "HostKey ''${CREDENTIALS_DIRECTORY}/ssh_host_ed25519_key" -o "HostKey ''${CREDENTIALS_DIRECTORY}/ssh_host_rsa_key"'' 92 ++ optional cfg.staticHostKeys ''-o "HostKey ''${CREDENTIALS_DIRECTORY}/ssh_host_ed25519_key" -o "HostKey ''${CREDENTIALS_DIRECTORY}/ssh_host_rsa_key"''
93 )); 93 ));