hostKeyFile variable
This commit is contained in:
@@ -8,6 +8,7 @@ in
|
|||||||
let
|
let
|
||||||
cfg = config.ssh;
|
cfg = config.ssh;
|
||||||
userCAPath = "ssh/ssh_user_ca.pub";
|
userCAPath = "ssh/ssh_user_ca.pub";
|
||||||
|
hostKeyFile = "ssh/ssh_host_ed25519_key";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.ssh = {
|
options.ssh = {
|
||||||
@@ -28,11 +29,11 @@ in
|
|||||||
{
|
{
|
||||||
PasswordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
KbdInteractiveAuthentication = false;
|
KbdInteractiveAuthentication = false;
|
||||||
HostKey = "/etc/ssh/ssh_host_ed25519_key";
|
HostKey = "/etc/${hostKeyFile}";
|
||||||
}
|
}
|
||||||
(lib.mkIf cfg.certificates.enable {
|
(lib.mkIf cfg.certificates.enable {
|
||||||
TrustedUserCAKeys = "/etc/${userCAPath}";
|
TrustedUserCAKeys = "/etc/${userCAPath}";
|
||||||
HostCertificate = "/etc/ssh/ssh_host_ed25519_key-cert.pub";
|
HostCertificate = "/etc/${hostKeyFile}-cert.pub";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user