59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
|
{ config, pkgs, lib, self, ... }:
|
||
|
with lib;
|
||
|
let
|
||
|
psCfg = config.pub-solar;
|
||
|
in
|
||
|
{
|
||
|
home-manager = pkgs.lib.setAttrByPath [ "users" psCfg.user.name ] {
|
||
|
programs.ssh = {
|
||
|
enable = true;
|
||
|
matchBlocks = {
|
||
|
"hsha" = {
|
||
|
hostname = "192.168.42.5";
|
||
|
user = "root";
|
||
|
port = 2222;
|
||
|
};
|
||
|
"ringo" = {
|
||
|
hostname = "192.168.42.231";
|
||
|
user = "hensoko";
|
||
|
port = 22;
|
||
|
};
|
||
|
"giggles" = {
|
||
|
hostname = "192.168.42.232";
|
||
|
user = "iot";
|
||
|
port = 22;
|
||
|
};
|
||
|
"norman" = {
|
||
|
hostname = "192.168.42.233";
|
||
|
user = "hensoko";
|
||
|
port = 22;
|
||
|
};
|
||
|
"cox" = {
|
||
|
hostname = "192.168.42.234";
|
||
|
user = "iot";
|
||
|
port = 22;
|
||
|
};
|
||
|
"companion" = {
|
||
|
user = "iot";
|
||
|
};
|
||
|
"cube" = {
|
||
|
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;
|
||
|
};
|
||
|
};
|
||
|
extraConfig = "PubKeyAcceptedKeyTypes +ssh-rsa";
|
||
|
};
|
||
|
};
|
||
|
}
|