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
|
./tinc
|
||||||
./wifi.nix
|
./wifi.nix
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
./zerotier.nix # todo: sshd must be first managed by clan
|
|
||||||
];
|
];
|
||||||
|
|
||||||
config = mkIf config.components.network.enable { };
|
config = mkIf config.components.network.enable { };
|
||||||
|
|
|
@ -39,6 +39,8 @@ in
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./known-hosts-public.nix
|
./known-hosts-public.nix
|
||||||
|
./known-hosts-manual.nix
|
||||||
|
./known-hosts-zerotier.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
options.components.network.sshd = {
|
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;
|
machines = clanLib.allMachineNames;
|
||||||
publicKey = clanLib.readFact "ssh.id_ed25519.pub";
|
publicKey = clanLib.readFact "ssh.id_ed25519.pub";
|
||||||
tld = config.clan.static-hosts.topLevelDomain;
|
tld = config.clan.static-hosts.topLevelDomain;
|
||||||
|
|
||||||
knownHosts = lib.genAttrs machines
|
knownHosts = lib.genAttrs machines
|
||||||
(machine:
|
(machine:
|
||||||
{
|
{
|
Loading…
Reference in a new issue