Skip to content

Commit

Permalink
Merge branch 'ssh-agent'
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Jun 29, 2024
2 parents 1cb40a4 + 1486855 commit 7b628cb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
3 changes: 3 additions & 0 deletions home/programs/ssh/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ in
homeage.file = listToAttrs (map mkHomeageFile cfg.identities);
programs.ssh = {
enable = true;
addKeysToAgent = "yes";
controlMaster = "auto";
controlPath = "~/.ssh/master-%r@%n:%p";
controlPersist = "10m";
};

services.ssh-agent.enable = true;
};
}
1 change: 1 addition & 0 deletions home/roles/desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ in
gnome.gnome-characters
gnome.nautilus
gnome.pomodoro
gnome.seahorse
mupdf
peek
gifski
Expand Down
2 changes: 2 additions & 0 deletions home/users/christian/git/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ in

programs.git = {
enable = true;
package = pkgs.gitFull;
lfs.enable = true;
userName = "Christian Harke";
signing.key = "630966F4";
Expand All @@ -47,6 +48,7 @@ in
};

extraConfig = {
credential.helper = "${pkgs.gitFull}/share/git/contrib/credential/libsecret/git-credential-libsecret";
maintenance.repo = [
"${config.home.homeDirectory}/.nix-config"
"${config.home.homeDirectory}/code/nixcfg"
Expand Down
9 changes: 2 additions & 7 deletions home/users/christian/gpg/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,8 @@ in
};

config = mkIf cfg.enable {

home.file.".gnupg/gpg-agent.conf" = {
text = ''
pinentry-program ${getExe pinentryPkg}
'';
};

programs.gpg.enable = true;

services.gpg-agent.pinentryPackage = pinentryPkg;
};
}

0 comments on commit 7b628cb

Please sign in to comment.