extend ssh config, add yubikey-manager

This commit is contained in:
Hendrik Sokolowski 2023-10-05 23:49:09 +02:00
parent c10bb47e15
commit a03aa75d08

View file

@ -9,6 +9,8 @@ with lib; let
psCfg = config.pub-solar; psCfg = config.pub-solar;
in { in {
home-manager = pkgs.lib.setAttrByPath ["users" psCfg.user.name] { home-manager = pkgs.lib.setAttrByPath ["users" psCfg.user.name] {
home.packages = [pkgs.yubikey-manager];
programs.ssh = { programs.ssh = {
enable = true; enable = true;
matchBlocks = { matchBlocks = {
@ -22,19 +24,28 @@ in {
user = "root"; user = "root";
port = 2222; port = 2222;
}; };
"cube" = {
user = "iot";
hostname = "10.0.1.5";
};
"ringo" = { "ringo" = {
hostname = "192.168.42.231"; hostname = "192.168.42.231";
user = "hensoko"; user = "hensoko";
port = 22; port = 22;
}; };
"giggles.lan" = {
user = "iot";
};
"giggles" = { "giggles" = {
user = "iot"; user = "iot";
hostname = "10.0.1.11";
}; };
"norman" = { "norman" = {
user = "hensoko"; user = "hensoko";
}; };
"cox" = { "cox" = {
user = "iot"; user = "iot";
hostname = "10.0.1.12";
}; };
"companion" = { "companion" = {
user = "iot"; user = "iot";