feat(homelab): add more aliases, setup ssh keys on yubikey

This commit is contained in:
2026-01-04 20:56:25 -08:00
parent 7b76ffd34f
commit b02a06faa7
7 changed files with 36 additions and 6 deletions

View File

@@ -23,6 +23,27 @@
nodejs_22
pnpm
];
systemd.user.services.ssh-add-keys = {
Unit = {
Description = "Load SSH keys from YubiKey";
After = [ "ssh-agent.service" ];
Requires = [ "ssh-agent.service" ];
};
Service = {
Type = "oneshot";
Environment = [
"SSH_AUTH_SOCK=%t/ssh-agent"
"SSH_ASKPASS=${pkgs.lxqt.lxqt-openssh-askpass}/bin/lxqt-openssh-askpass"
"SSH_ASKPASS_REQUIRE=prefer"
"DISPLAY=:0"
];
ExecStart = "${pkgs.openssh}/bin/ssh-add -K";
RemainAfterExit = true;
};
Install = {
WantedBy = [ "default.target" ];
};
};
home.stateVersion = "24.11";