fix: use keychain for ssh key management
This commit is contained in:
parent
6791bf65be
commit
f5b38b8fbc
4 changed files with 9 additions and 11 deletions
|
@ -10,13 +10,9 @@
|
|||
hm.programs.fish = {
|
||||
enable = true;
|
||||
|
||||
interactiveShellInit = with pkgs; ''
|
||||
if test -f ~/.ssh/id_ed25519
|
||||
ssh-add -l | grep -q (ssh-keygen -lf ~/.ssh/id_ed25519) || ssh-add ~/.ssh/id_ed25519
|
||||
end
|
||||
|
||||
${lib.getExe starship} init fish | source
|
||||
${lib.getExe nix-your-shell} fish | source
|
||||
interactiveShellInit = ''
|
||||
${lib.getExe pkgs.starship} init fish | source
|
||||
${lib.getExe pkgs.nix-your-shell} fish | source
|
||||
'';
|
||||
|
||||
functions.fish_greeting = "";
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
};
|
||||
|
||||
environment = {
|
||||
variables.SSH_AUTH_SOCK = "/run/user/1000/ssh-agent";
|
||||
|
||||
systemPackages = with pkgs; [
|
||||
flameshot
|
||||
gnome-calculator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue