nixos-configs/home-manager/ssh/default.nix

52 lines
1.3 KiB
Nix
Raw Normal View History

2023-10-08 14:57:57 +00:00
{
2023-11-05 17:49:51 +00:00
config,
lib,
...
}: {
2023-10-08 14:57:57 +00:00
config = {
programs.ssh = {
enable = true;
extraConfig = "User root";
matchBlocks = {
2023-11-05 17:49:51 +00:00
github = lib.hm.dag.entryBefore ["*"] {
2023-10-08 14:57:57 +00:00
hostname = "github.com";
user = "pizzapim";
identitiesOnly = true;
};
2023-11-05 17:49:51 +00:00
lewis = lib.hm.dag.entryBefore ["*"] {
2023-10-08 14:57:57 +00:00
hostname = "lewis.hyp";
};
2023-11-05 17:49:51 +00:00
atlas = lib.hm.dag.entryBefore ["*"] {
2023-10-08 14:57:57 +00:00
hostname = "atlas.hyp";
};
2023-11-05 17:49:51 +00:00
jefke = lib.hm.dag.entryBefore ["*"] {
2023-10-08 14:57:57 +00:00
hostname = "jefke.hyp";
};
2023-11-05 17:49:51 +00:00
hermes = lib.hm.dag.entryBefore ["*"] {
2023-10-08 14:57:57 +00:00
hostname = "hermes.dmz";
};
2023-11-05 17:49:51 +00:00
maestro = lib.hm.dag.entryBefore ["*"] {
2023-10-08 14:57:57 +00:00
hostname = "maestro.dmz";
};
2023-11-05 17:49:51 +00:00
bancomart = lib.hm.dag.entryBefore ["*"] {
2023-10-08 14:57:57 +00:00
hostname = "bancomart.dmz";
};
2023-11-05 17:49:51 +00:00
handjecontantje = lib.hm.dag.entryBefore ["*"] {
2023-10-08 14:57:57 +00:00
hostname = "handjecontantje.dmz";
};
};
};
2023-10-16 09:21:40 +00:00
homeage.file."sue_ed25519" = {
source = ../../secrets/sue_ed25519.age;
2023-11-05 17:49:51 +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-05 17:49:51 +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
};
}