os/users/hensoko/ssh.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

82 lines
1.6 KiB
Nix
Raw Normal View History

2022-08-21 21:56:42 +00:00
{
2023-02-25 13:45:21 +00:00
config,
pkgs,
lib,
self,
...
}:
with lib; let
psCfg = config.pub-solar;
in {
home-manager = pkgs.lib.setAttrByPath ["users" psCfg.user.name] {
2023-10-05 21:49:09 +00:00
home.packages = [pkgs.yubikey-manager];
2022-08-21 21:56:42 +00:00
programs.ssh = {
enable = true;
matchBlocks = {
2023-02-25 13:45:21 +00:00
"builder" = {
hostname = "data.gssws.de";
user = "builder";
port = 2222;
};
2022-08-21 21:56:42 +00:00
"hsha" = {
hostname = "192.168.42.5";
user = "root";
port = 2222;
};
2023-10-05 21:49:09 +00:00
"cube" = {
user = "iot";
hostname = "10.0.1.5";
};
2022-08-21 21:56:42 +00:00
"ringo" = {
hostname = "192.168.42.231";
user = "hensoko";
port = 22;
};
2023-10-05 21:49:09 +00:00
"giggles.lan" = {
user = "iot";
};
2022-08-21 21:56:42 +00:00
"giggles" = {
user = "iot";
2023-10-05 21:49:09 +00:00
hostname = "10.0.1.11";
2022-08-21 21:56:42 +00:00
};
"norman" = {
user = "hensoko";
};
2023-10-28 22:43:16 +00:00
"cox.lan" = {
user = "iot";
};
2022-08-21 21:56:42 +00:00
"cox" = {
user = "iot";
2023-10-05 21:49:09 +00:00
hostname = "10.0.1.12";
2022-08-21 21:56:42 +00:00
};
"companion" = {
user = "iot";
2023-03-07 15:48:46 +00:00
hostname = "10.0.1.13";
2022-08-21 21:56:42 +00:00
};
2023-02-25 13:45:21 +00:00
"chonk" = {
2022-08-21 21:56:42 +00:00
hostname = "80.244.242.2";
user = "iot";
port = 2222;
};
"mail" = {
hostname = "mail.gssws.de";
user = "root";
port = 2222;
};
"git" = {
hostname = "git.gssws.de";
user = "git";
port = 2222;
};
2023-01-28 21:30:37 +00:00
"falcone" = {
hostname = "192.168.42.117";
user = "iot";
};
2022-08-21 21:56:42 +00:00
};
extraConfig = "PubKeyAcceptedKeyTypes +ssh-rsa";
};
};
}