mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 19:27:17 +00:00
Enables home-manager config for ssh
This commit is contained in:
parent
5279ad63b2
commit
27c9899ec5
3 changed files with 44 additions and 1 deletions
|
@ -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"
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
...
|
||||
}: {
|
||||
imports = [
|
||||
./zsh.nix
|
||||
./emacs
|
||||
./ssh.nix
|
||||
./zsh.nix
|
||||
];
|
||||
|
||||
programs = {
|
||||
|
|
40
home/programs/ssh.nix
Normal file
40
home/programs/ssh.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue