fix ssh config

This commit is contained in:
Charlotte 🦝 Delenk 2022-04-13 11:33:50 +01:00
parent 0062a9ee53
commit ac549a0f52
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -1,19 +1,21 @@
{ ... }: {
programs.ssh = {
enable = true;
"build-nas" = {
hostname = "backup.int.chir.rs";
identitiesOnly = true;
identityFile = "~/.ssh/id_ed25519";
port = 22;
user = "darkkirb";
};
"build-pc" = {
hostname = "nutty-noon.int.chir.rs";
identitiesOnly = true;
identityFile = "~/.ssh/id_ed25519";
port = 22;
user = "darkkirb";
matchBlocks = {
"build-nas" = {
hostname = "backup.int.chir.rs";
identitiesOnly = true;
identityFile = "~/.ssh/id_ed25519";
port = 22;
user = "darkkirb";
};
"build-pc" = {
hostname = "nutty-noon.int.chir.rs";
identitiesOnly = true;
identityFile = "~/.ssh/id_ed25519";
port = 22;
user = "darkkirb";
};
};
};
}