ssh hosts

This commit is contained in:
Zuckerberg 2022-04-09 22:41:21 -04:00
parent 8d9c80d5b7
commit 5cf1dff4e0
2 changed files with 49 additions and 0 deletions

View File

@ -6,6 +6,7 @@
./pia.nix ./pia.nix
./zerotier.nix ./zerotier.nix
./auto-update.nix ./auto-update.nix
./hosts.nix
./boot ./boot
./server ./server
./pc ./pc

48
common/hosts.nix Normal file
View File

@ -0,0 +1,48 @@
{ config, lib, ... }:
let
system = (import ./ssh.nix).system;
in {
programs.ssh.knownHosts = {
liza = {
hostNames = [ "liza" "liza.neet.dev" ];
publicKey = system.liza;
};
ray = {
hostNames = [ "ray" ];
publicKey = system.ray;
};
s0 = {
hostNames = [ "s0" ];
publicKey = system.s0;
};
n1 = {
hostNames = [ "n1" ];
publicKey = system.n1;
};
n2 = {
hostNames = [ "n2" ];
publicKey = system.n2;
};
n3 = {
hostNames = [ "n3" ];
publicKey = system.n3;
};
n4 = {
hostNames = [ "n4" ];
publicKey = system.n4;
};
n5 = {
hostNames = [ "n5" ];
publicKey = system.n5;
};
n6 = {
hostNames = [ "n6" ];
publicKey = system.n6;
};
n7 = {
hostNames = [ "n7" ];
publicKey = system.n7;
};
};
}