fix known hosts foo.
This commit is contained in:
parent
5170b0303b
commit
71dcb6ee5c
4 changed files with 21 additions and 2 deletions
|
@ -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 { };
|
||||
|
|
|
@ -39,6 +39,8 @@ in
|
|||
|
||||
imports = [
|
||||
./known-hosts-public.nix
|
||||
./known-hosts-manual.nix
|
||||
./known-hosts-zerotier.nix
|
||||
];
|
||||
|
||||
options.components.network.sshd = {
|
||||
|
|
19
components/network/sshd/known-hosts-manual.nix
Normal file
19
components/network/sshd/known-hosts-manual.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
|
@ -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:
|
||||
{
|
Loading…
Reference in a new issue