Enables home-manager config for ssh

This commit is contained in:
willemml 2023-11-11 02:53:11 -08:00
parent 5279ad63b2
commit 27c9899ec5
Signed by: willemml
GPG key ID: C3DE5DF6198DACBD
3 changed files with 44 additions and 1 deletions

View file

@ -18,6 +18,8 @@
programs.command-not-found.enable = true;
programs.ssh.includes = ["/Users/willem/.colima/ssh_config"];
home.file.".gnupg/gpg-agent.conf" = {
text = ''
pinentry-program "${pkgs.pinentry-touchid}/bin/pinentry-touchid"

View file

@ -5,8 +5,9 @@
...
}: {
imports = [
./zsh.nix
./emacs
./ssh.nix
./zsh.nix
];
programs = {

40
home/programs/ssh.nix Normal file
View file

@ -0,0 +1,40 @@
{...}: {
programs.ssh = {
enable = true;
forwardAgent = true;
extraConfig = ''
IgnoreUnknown UseKeychain
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
'';
matchBlocks = {
"zeus" = {
host = "10.1.2.16";
user = "willem";
};
"nixbox" = {
host = "10.1.2.175";
user = "willem";
};
"ubc" = {
host = "remote.students.cs.ubc.ca";
user = "willemml";
};
"*.students.cs.ubc.ca" = {
user = "willemml";
};
"github.com" = {
host = "ssh.github.com";
port = 443;
};
"orlia-nas" = {
host = "192.168.1.251";
user = "willem";
};
};
};
}