Skip to content

Commit

Permalink
Enable control master for ssh.
Browse files Browse the repository at this point in the history
  • Loading branch information
pippijn committed Dec 29, 2023
1 parent de3cbd8 commit db1e424
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .config/home-manager/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ in {
programs.ssh = {
enable = true;

controlMaster = "auto";
controlPersist = "10m";

extraConfig = ''
IdentityFile ~/.ssh/id_ed25519
IdentityFile ~/.ssh/id_rsa
'';

matchBlocks = {
irssi = {
user = "irssi";
Expand Down Expand Up @@ -131,7 +139,8 @@ in {
initExtra = ''
unsetopt beep # don't beep, ever
setopt hist_reduce_blanks # remove superfluous blanks
keychain id_rsa
chmod 0600 $HOME/.ssh/id_ed25519 $HOME/.ssh/id_rsa
keychain id_ed25519 id_rsa
. .keychain/${sys.networking.hostName}-sh
# Fix some permissions in case they went wrong after git clone
Expand Down

0 comments on commit db1e424

Please sign in to comment.