fix: use keychain for ssh key management

This commit is contained in:
uku 2024-09-27 13:44:02 +02:00
parent 6791bf65be
commit f5b38b8fbc
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
4 changed files with 9 additions and 11 deletions

View file

@ -7,6 +7,12 @@
fastfetch
];
hm.programs.keychain = {
enable = true;
agents = ["ssh"];
keys = ["id_ed25519"];
};
networking = {
useNetworkd = false;
networkmanager = {

View file

@ -75,8 +75,6 @@ in {
addKeysToAgent = "yes";
forwardAgent = true;
};
services.ssh-agent.enable = true;
};
home-manager = {

View file

@ -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 = "";

View file

@ -12,8 +12,6 @@
};
environment = {
variables.SSH_AUTH_SOCK = "/run/user/1000/ssh-agent";
systemPackages = with pkgs; [
flameshot
gnome-calculator