all repos — nixfiles @ f1e5b5c9e66dba560c4a50ade02895ef4a0d6bde

System and user configuration, managed by nix and home-manager

save SSH host aliases for known hosts

Alin
commit

f1e5b5c9e66dba560c4a50ade02895ef4a0d6bde

parent

502879c7cc0197bb6449938fba19b713dd229f28

2 files changed, 10 insertions(+), 2 deletions(-)

changed files
M data/default.nix → data/default.nix
@@ -23,6 +23,9 @@ domains = [
tailnet pubnethosts ]; + aliases = [ + "git.${pubnet}" + ]; builder = { system = "x86_64-linux"; };
M system/roles/nix-build-client.nix → system/roles/nix-build-client.nix
@@ -10,10 +10,15 @@ machines = lib.filterAttrs (k: _: k != config.networking.hostName) data.machines;
mkKnownHost = name: - { publicKey, domains, ... }: + { + publicKey, + domains, + aliases ? [ ], + ... + }: { inherit publicKey; - extraHostNames = map (domain: "${name}.${domain}") domains; + extraHostNames = (map (domain: "${name}.${domain}") domains) ++ aliases; }; mkBuilder =