Files
cyper-nix/home/ssh.nix
2026-04-05 22:02:27 +02:00

20 lines
500 B
Nix

{ primaryUser, isDarwin, ... }:
{
programs.ssh = {
enable = true;
addKeysToAgent = "yes";
matchBlocks = {
"*.cyperpunk.de" = {
identityFile =
if isDarwin then "/Users/${primaryUser}/.ssh/ssh" else "/home/${primaryUser}/.ssh/ssh";
user = primaryUser;
};
"github.com" = {
identityFile =
if isDarwin then "/Users/${primaryUser}/.ssh/github" else "/home/${primaryUser}/.ssh/github";
user = "git";
};
};
};
}