chore: update ssh config

This commit is contained in:
Nickolaj Jepsen 2025-02-26 15:26:31 +01:00
parent ec9ad1e019
commit fff1c89a00
5 changed files with 27 additions and 3 deletions

19
hosts/work/ssh.nix Normal file
View file

@ -0,0 +1,19 @@
{lib, ...}: {
fireproof.home-manager.programs.ssh.matchBlocks = {
"dev.ao" = {
hostname = "192.168.2.28";
proxyJump = lib.mkForce null;
};
"flex.ao" = {
hostname = "192.168.2.5";
proxyJump = lib.mkForce null;
};
"bastion.ao" = {
hostname = "192.168.2.6";
proxyJump = lib.mkForce null;
};
"server" = {
proxyJump = "bastion.ao";
};
};
}

View file

@ -29,13 +29,17 @@ in {
"*" = {
identityFile = "${config.age.secrets.ssh-key.path}";
};
server = {
hostname = "x.nickolaj.com";
user = "server";
};
# Work hostnames definded in ./networking.nix
"*.ao" = {
user = "nij";
identityFile = "${config.age.secrets.ssh-key-ao.path}";
};
"dev.ao".proxyJump = "bastion.ao";
"scw.ao".proxyJump = "bastion.ao";
"dev.ao".proxyJump = lib.mkDefault "bastion.ao";
"scw.ao".proxyJump = lib.mkDefault "dev.ao";
"clickhouse.ao".user = "ubuntu";
"flex.ao" = {
hostname = "192.168.2.5";

View file

@ -301,6 +301,7 @@ in {
# Firefox
"float,class:^(firefox)$,title:^(Picture-in-Picture)$"
"float,class:^(firefox)$,title:^(Library)$"
"float,class:^(firefox)$,title:^(Bitwarden Password Manager)$"
# JetBrains
"center,class:^(jetbrains-.*)$,title:^$,floating:1"

View file

2
result
View file

@ -1 +1 @@
/nix/store/mabdcimq3jgzzpb8azqw94f4bny91v5a-nixos-system-work-24.11.20250221.11415c7
/nix/store/srlm3dpxlzlpj9i4n9knqg5dfd2vglpq-nixos-system-work-24.11.20250221.11415c7