home/ssh: port matchblocks from secrets

This commit is contained in:
Oystein Kristoffer Tveit 2023-12-13 14:02:22 +01:00
parent e5ce5fdcf2
commit f7b893b10c
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
3 changed files with 35 additions and 1 deletions

View File

@ -1,6 +1,7 @@
{ {
imports = [ imports = [
./pvv.nix ./home.nix
./other.nix ./other.nix
./pvv.nix
]; ];
} }

25
home/config/ssh/home.nix Normal file
View File

@ -0,0 +1,25 @@
{ ... }:
{
programs.ssh.matchBlocks = {
suiseir = {
user = "h7x4";
hostname = "heimen.hopto.me";
port = 23934;
};
pir = {
user = "h7x4";
hostname = "gingakei.loginto.me";
port = 41348;
};
tsukir = {
user = "h7x4";
hostname = "gingakei.loginto.me";
port = 45497;
};
"git.nani.wtf git.tsuki.local git.seiun.cloud" = {
user = "git";
hostname = "gingakei.loginto.me";
port = 45497;
};
};
}

View File

@ -1,6 +1,14 @@
{ lib, ... }: { lib, ... }:
{ {
programs.ssh.matchBlocks = { programs.ssh.matchBlocks = {
"ntnu" = {
user = "oysteikt";
hostname = "login.stud.ntnu.no";
};
"gitlab.stud.idi.ntnu.no" = {
user = "git";
proxyJump = "pvv";
};
"pascal wack" = { "pascal wack" = {
user = "h7x4"; user = "h7x4";
hostname = "wiki.wackattack.eu"; hostname = "wiki.wackattack.eu";