2023-11-10 10:33:41 +00:00
|
|
|
{ config, lib, ... }: {
|
2023-10-08 14:57:57 +00:00
|
|
|
config = {
|
|
|
|
programs.ssh = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = "User root";
|
|
|
|
|
|
|
|
matchBlocks = {
|
2023-11-10 10:33:41 +00:00
|
|
|
github = lib.hm.dag.entryBefore [ "*" ] {
|
2023-10-08 14:57:57 +00:00
|
|
|
hostname = "github.com";
|
|
|
|
user = "pizzapim";
|
|
|
|
identitiesOnly = true;
|
|
|
|
};
|
2024-04-20 08:57:13 +00:00
|
|
|
lewis = lib.hm.dag.entryBefore [ "*" ] { hostname = "lewis.dmz"; };
|
|
|
|
atlas = lib.hm.dag.entryBefore [ "*" ] { hostname = "atlas.dmz"; };
|
|
|
|
jefke = lib.hm.dag.entryBefore [ "*" ] { hostname = "jefke.dmz"; };
|
|
|
|
warwick = lib.hm.dag.entryBefore [ "*" ] { hostname = "warwick.dmz"; };
|
2023-10-08 14:57:57 +00:00
|
|
|
};
|
|
|
|
};
|
2023-10-16 09:21:40 +00:00
|
|
|
|
|
|
|
homeage.file."sue_ed25519" = {
|
|
|
|
source = ../../secrets/sue_ed25519.age;
|
2023-11-10 10:33:41 +00:00
|
|
|
symlinks = [ "${config.home.homeDirectory}/.ssh/sue_ed25519" ];
|
2023-10-16 09:21:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
homeage.file."sue_azure_rsa" = {
|
|
|
|
source = ../../secrets/sue_azure_rsa.age;
|
2023-11-10 10:33:41 +00:00
|
|
|
symlinks = [ "${config.home.homeDirectory}/.ssh/sue_azure_rsa" ];
|
2023-10-16 09:21:40 +00:00
|
|
|
};
|
2023-10-08 14:57:57 +00:00
|
|
|
};
|
|
|
|
}
|