flake/home/applications/ssh/default.nix

21 lines
420 B
Nix
Raw Normal View History

{ config, ... }:
{
2024-07-24 16:52:39 +00:00
programs.ssh = {
enable = true;
matchBlocks =
let
inherit (config.home) homeDirectory;
2024-08-27 21:44:22 +00:00
serverConfig = {
identityFile = "${homeDirectory}/.ssh/id_github_signing";
user = "root";
};
in
{
2024-08-27 21:44:22 +00:00
"tyo0.ny4.dev" = serverConfig;
2024-08-31 00:00:40 +00:00
"pek0.ny4.dev" = serverConfig // {
hostname = "blacksteel";
};
};
2024-07-24 16:52:39 +00:00
};
}