home: split up ssh into blocks, and add more targets
This commit is contained in:
parent
b1650e91a6
commit
6289b53ff7
6
home/config/ssh/default.nix
Normal file
6
home/config/ssh/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
imports = [
|
||||
./pvv.nix
|
||||
./other.nix
|
||||
];
|
||||
}
|
10
home/config/ssh/other.nix
Normal file
10
home/config/ssh/other.nix
Normal file
@ -0,0 +1,10 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
programs.ssh.matchBlocks = {
|
||||
"pascal wack" = {
|
||||
user = "h7x4";
|
||||
hostname = "wiki.wackattack.eu";
|
||||
port = 1337;
|
||||
};
|
||||
};
|
||||
}
|
@ -7,7 +7,16 @@ let
|
||||
[ "hildring" "pvv-login" "pvv" ]
|
||||
"demiurgen"
|
||||
"eirin"
|
||||
[ "jokum" "pvv-nix" ]
|
||||
"bekkalokk"
|
||||
"ildkule"
|
||||
"shark"
|
||||
"buskerud"
|
||||
"bicep"
|
||||
{
|
||||
names = [ "bob" ];
|
||||
proxyJump = "hildring";
|
||||
}
|
||||
"knutsen"
|
||||
"isvegg"
|
||||
[ "microbel" "pvv-users" "pvv-mail" ]
|
||||
];
|
||||
@ -16,18 +25,17 @@ let
|
||||
[ "knakelibrak" "pvv-databases" ]
|
||||
[ "spikkjeposche" "pvv-web" "pvv-wiki" "pvv-webmail" ]
|
||||
"sleipner"
|
||||
"fenris"
|
||||
# "fenris"
|
||||
"balduzius"
|
||||
"joshua"
|
||||
"skrotnisse"
|
||||
# "skrotnisse"
|
||||
"principal"
|
||||
"tom"
|
||||
"monty"
|
||||
|
||||
{
|
||||
names = ["dvask"];
|
||||
proxyJump = "monty";
|
||||
}
|
||||
# "monty"
|
||||
# {
|
||||
# names = [ "dvask" ];
|
||||
# proxyJump = "monty";
|
||||
# }
|
||||
|
||||
[ "innovation" "pvv-minecraft" ]
|
||||
];
|
||||
@ -44,7 +52,7 @@ let
|
||||
inherit (lib.lists) head;
|
||||
inherit (lib.strings) split;
|
||||
in
|
||||
names: { hostname = "${head names}.pvv.org"; };
|
||||
names: { hostname = "${head names}.pvv.ntnu.no"; };
|
||||
|
||||
# AttrSet -> AttrSet -> AttrSet
|
||||
convertMachineWithDefaults = defaults: normalizedMachine: let
|
@ -8,7 +8,7 @@ in {
|
||||
./shell.nix
|
||||
./packages.nix
|
||||
|
||||
./config/ssh/hosts/pvv.nix
|
||||
./config/ssh
|
||||
./config/xdg
|
||||
|
||||
./programs/atuin.nix
|
||||
|
Loading…
Reference in New Issue
Block a user