fix known hosts foo.

This commit is contained in:
Ingolf Wagner 2024-06-10 17:24:21 +02:00
parent 5170b0303b
commit 71dcb6ee5c
Signed by: palo
GPG key ID: 76BF5F1928B9618B
4 changed files with 21 additions and 2 deletions

View file

@ -18,7 +18,6 @@ with types;
./tinc
./wifi.nix
./wireguard.nix
./zerotier.nix # todo: sshd must be first managed by clan
];
config = mkIf config.components.network.enable { };

View file

@ -39,6 +39,8 @@ in
imports = [
./known-hosts-public.nix
./known-hosts-manual.nix
./known-hosts-zerotier.nix
];
options.components.network.sshd = {

View file

@ -0,0 +1,19 @@
{ pkgs, config, lib, clanLib, ... }:
with lib;
let
publicKey = clanLib.readFact "ssh.id_ed25519.pub";
in
{
config = {
services.openssh.knownHosts = {
orbi = {
hostNames = [
"git.ingolf-wagner.de"
"95.216.66.212"
];
};
};
};
}

View file

@ -3,7 +3,6 @@ let
machines = clanLib.allMachineNames;
publicKey = clanLib.readFact "ssh.id_ed25519.pub";
tld = config.clan.static-hosts.topLevelDomain;
knownHosts = lib.genAttrs machines
(machine:
{