common/known-ssh-keys: init
Let's ensure that all our servers are aware of all host keys to avoid host key verification issues when needed. (example: buildbot → gerrit) Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
parent
948618ab6a
commit
e7c7f759a1
|
@ -1,4 +1,8 @@
|
||||||
{ lib, pkgs, ... }: {
|
{ lib, pkgs, ... }: {
|
||||||
|
imports = [
|
||||||
|
./known-ssh-keys.nix
|
||||||
|
];
|
||||||
|
|
||||||
nixpkgs.overlays = import ../overlays;
|
nixpkgs.overlays = import ../overlays;
|
||||||
|
|
||||||
nix.package = lib.mkDefault pkgs.lix;
|
nix.package = lib.mkDefault pkgs.lix;
|
||||||
|
|
9
common/known-ssh-keys.nix
Normal file
9
common/known-ssh-keys.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ ... }:
|
||||||
|
let
|
||||||
|
ssh-keys = import ./ssh-keys;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
programs.ssh.knownHosts = {
|
||||||
|
"cl.forkos.org".publicKey = ssh-keys.gerrit01;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue