mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
dns: move all local hosts under vpn.rfive.de
This commit is contained in:
parent
0b0ddf7faf
commit
0205b8b2ea
3 changed files with 8 additions and 29 deletions
|
@ -3,14 +3,14 @@ let
|
|||
git = "~/.ssh/git";
|
||||
in
|
||||
{
|
||||
programs.ssh = rec {
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
compression = true;
|
||||
controlMaster = "auto";
|
||||
controlPersist = "10m";
|
||||
extraConfig = ''
|
||||
CanonicalizeHostname yes
|
||||
CanonicalDomains agdsn.network
|
||||
CanonicalDomains agdsn.network vpn.rfive.de
|
||||
PKCS11Provider /run/current-system/sw/lib/libtpm2_pkcs11.so
|
||||
IdentityFile ~/.ssh/id_ed25519
|
||||
VisualHostKey = yes
|
||||
|
@ -21,26 +21,6 @@ in
|
|||
match = "Host github.com User git";
|
||||
identityFile = git;
|
||||
};
|
||||
"rfive.de" = {
|
||||
hostname = "falkenstein.rfive.de";
|
||||
user = "root";
|
||||
extraOptions = {
|
||||
VerifyHostKeyDNS = "yes";
|
||||
};
|
||||
};
|
||||
# used for nix remote building
|
||||
falkenstein = matchBlocks."rfive.de";
|
||||
|
||||
"nuc" = {
|
||||
hostname = "192.168.42.2";
|
||||
user = "root";
|
||||
};
|
||||
|
||||
"router" = {
|
||||
hostname = "192.168.42.1";
|
||||
user = "root";
|
||||
};
|
||||
|
||||
# iFSR
|
||||
"fsr" = {
|
||||
hostname = "ifsr.de";
|
||||
|
@ -70,10 +50,6 @@ in
|
|||
hostname = "tomate.ifsr.de";
|
||||
user = "root";
|
||||
};
|
||||
"durian" = {
|
||||
hostname = "durian.ifsr.de";
|
||||
user = "root";
|
||||
};
|
||||
"git@ifsr.de" = {
|
||||
match = "Host ifsr.de User git";
|
||||
identityFile = git;
|
||||
|
@ -94,6 +70,9 @@ in
|
|||
VerifyHostKeyDNS = "yes";
|
||||
};
|
||||
};
|
||||
"*.vpn.rfive.de" = {
|
||||
user = "root";
|
||||
};
|
||||
"git@git.agdsn.de" = {
|
||||
match = "Host git.agdsn.de User git";
|
||||
identityFile = git;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue