nix-config/home/ssh/default.nix

72 lines
1.7 KiB
Nix
Raw Normal View History

2022-01-18 09:32:55 +01:00
{ config, pkgs, ... }:
{
home.file.".ssh/id_rsa_yubikey.pub".source = ./id_rsa_yubikey.pub;
2022-09-02 17:59:18 +02:00
home.file.".ssh/id_rsa_yubikey-cert.pub".source = ./id_rsa_yubikey-cert.pub;
2022-01-18 09:32:55 +01:00
programs.ssh = {
enable = true;
matchBlocks = {
"github.com" = {
identitiesOnly = true;
identityFile = "~/.ssh/id_rsa_yubikey.pub";
};
"openwrt" = {
identitiesOnly = true;
identityFile = "~/.ssh/id_rsa_yubikey.pub";
forwardAgent = true;
user = "root";
};
"narwhal" = {
identitiesOnly = true;
identityFile = "~/.ssh/id_rsa_yubikey.pub";
2022-09-02 17:59:18 +02:00
certificateFile = "~/.ssh/id_rsa_yubikey-cert.pub";
2022-01-18 09:32:55 +01:00
forwardAgent = true;
port = 22;
};
"trantor" = {
identitiesOnly = true;
identityFile = "~/.ssh/id_rsa_yubikey.pub";
2022-09-02 17:59:18 +02:00
certificateFile = "~/.ssh/id_rsa_yubikey-cert.pub";
2022-01-18 09:32:55 +01:00
forwardAgent = true;
port = 22;
};
"axolotl" = {
identitiesOnly = true;
identityFile = "~/.ssh/id_rsa_yubikey.pub";
2022-09-02 17:59:18 +02:00
certificateFile = "~/.ssh/id_rsa_yubikey-cert.pub";
2022-01-18 09:32:55 +01:00
forwardAgent = true;
port = 22;
};
"caladan" = {
identitiesOnly = true;
identityFile = "~/.ssh/id_rsa_yubikey.pub";
2022-09-02 17:59:18 +02:00
certificateFile = "~/.ssh/id_rsa_yubikey-cert.pub";
2022-01-18 09:32:55 +01:00
forwardAgent = true;
2022-08-13 14:11:38 +02:00
port = 22;
2022-01-18 09:32:55 +01:00
};
"fugu" = {
identitiesOnly = true;
identityFile = "~/.ssh/id_rsa_yubikey.pub";
2022-09-02 17:59:18 +02:00
certificateFile = "~/.ssh/id_rsa_yubikey-cert.pub";
2022-01-18 09:32:55 +01:00
forwardAgent = true;
port = 22;
};
2022-07-11 15:21:47 +02:00
"bitbucket.org" = {
user = "git";
identitiesOnly = true;
identityFile = "~/.ssh/bitbucket_rsa";
port = 22;
};
2022-01-18 09:32:55 +01:00
};
};
}