lksjdlakjsdl
This commit is contained in:
@@ -18,6 +18,7 @@ in
|
||||
#security.acme.defaults.reloadServices
|
||||
|
||||
# https://www.xf.is/2020/06/30/list-of-free-acme-ssl-providers/
|
||||
#security.acme.defaults.server = "https://acme-v02.api.letsencrypt.org/directory" # default
|
||||
#security.acme.defaults.server = "https://acme-staging-v02.api.letsencrypt.org/directory"; # STAGING
|
||||
#security.acme.defaults.server = "https://api.buypass.com/acme/directory"; # no wildcards, rate limit: 20 domains/week, 5 duplicate certs / week
|
||||
#security.acme.defaults.server = "https://api.test4.buypass.no/acme/directory"; # STAGING. no wildcards, rate limit: 20 domains/week, 5 duplicate certs / week
|
||||
|
||||
@@ -43,7 +43,7 @@ let
|
||||
programs.ssh.knownHosts.${fqdn}.publicKey = host.ssh.listenPublicKey;
|
||||
# TODO: use nix.buildMachines.*.publicHostKey ?
|
||||
|
||||
# timeouts are great when remote is unresponsive. nix doesn't care
|
||||
# timeouts are great when remote is unresponsive. nix doesn't care, lix is way and tests each remote only once
|
||||
programs.ssh.extraConfig = ''
|
||||
Host ${fqdn}
|
||||
ConnectTimeout 3
|
||||
@@ -51,6 +51,9 @@ let
|
||||
${lib.optionalString (host.ssh ? proxyJump) ''
|
||||
ProxyJump ${jump.ssh.listenUser}@${host.ssh.proxyJump}:${builtins.toString jump.ssh.listenPort}
|
||||
''}
|
||||
${lib.optionalString (host.ssh ? userPrivateKey) ''
|
||||
IdentityFile ${host.ssh.userPrivateKey}
|
||||
''}
|
||||
'';
|
||||
})
|
||||
# in
|
||||
@@ -79,4 +82,7 @@ in {
|
||||
|
||||
imports = lib.forEach hostNames mkRemoteConfig;
|
||||
|
||||
# TODO: derive this one from known-hosts.toml
|
||||
sops.secrets.nix-community-builders-ssh-key = {};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user