rycee changed the topic of #home-manager to: Support and discussion around the Home Manager project (https://github.com/rycee/home-manager) | Logs: https://logs.nix.samueldr.com/home-manager
mexisme has quit [Ping timeout: 248 seconds]
mexisme has joined #home-manager
klntsky has quit [Ping timeout: 240 seconds]
klntsky has joined #home-manager
pie_ has quit [Ping timeout: 268 seconds]
mexisme has quit [Ping timeout: 260 seconds]
pie_ has joined #home-manager
pie_ has quit [Ping timeout: 240 seconds]
mexisme has joined #home-manager
mexisme has quit [Ping timeout: 248 seconds]
mexisme has joined #home-manager
__monty__ has joined #home-manager
pie_ has joined #home-manager
pie_ has quit [Ping timeout: 258 seconds]
mexisme has quit [Quit: WeeChat 2.6]
mexisme has joined #home-manager
mexisme has quit [Ping timeout: 248 seconds]
pie_ has joined #home-manager
pie_ has quit [Ping timeout: 248 seconds]
pie_ has joined #home-manager
jD91mZM2 has joined #home-manager
jD91mZM2 has quit [Quit: ZNC 1.7.4 - https://znc.in]
jD91mZM2 has joined #home-manager
<jD91mZM2> Hi guys! I've for long been struggling with how to enter my SSH and GPG keys' passphrases. I've tried stuff like GNOME Keyring and KDE Wallet, but both of those have been a little too magical to me, mainly because they randomly broke after updates. I have for long been using GPG's SSH support, but that still requires unlocking your keys after each relog. It also requires running `ssh-add`
<jD91mZM2> once before it works, as I found out after probably spending an hour on searching after why the gpg agent didn't work. I decided that I should maybe use the Funtoo keychain application, but there's no askpass as good as pinentry... So I decided to roll my own, in an attempt to not even get this problem again. My solution ended up being
<jD91mZM2> https://gitlab.com/jD91mZM2/dotfiles/blob/177a2afde7e71f0eb96dfdb7a4729cb101ee084e/home/nixpkgs/.config/nixpkgs/keychain.nix (ignore that "Coding/Scripting/ssh-askpass", that's actually https://gitlab.com/jD91mZM2/ssh-askpass). Do you think such a module may be useful to contribute to home-manager?
<jD91mZM2> (Sorry for the wall of text)
<rycee> jD91mZM2: Seems interesting :-) Dunno if it would be suitable as a module in HM, though. It's not something I've heard people worry about before.
<rycee> But perhaps could add an option somewhere to allow, e.g., alternative ssh-askpass implementations.
<jD91mZM2> There already is, by setting the environment variable :)
<rycee> Hehe, yeah :-)
<jD91mZM2> I could make this change available from the ssh-askpass repo instead :)
<jD91mZM2> Off topic, how do you handle your SSH keys?
<rycee> Yeah, you could always distribute a HM module in the project or in your NUR.
<rycee> I use gpg-agent with a yubikey for my main SSH key with a few other keys on disk.
<rycee> I typically generate the SSH key from a GPG key.
<jD91mZM2> TIL that's possible
<rycee> I rarely do multiple logins per day but I do pull the yubikey out quite often and have to enter the pin again. Fortunately it is possible to have a relatively short pin when your key is on a hardware token so it is quick to type :-)
<rycee> The SSH key is just a GPG authentication sub-key. Quite handy to have all of them in the same place and generated from the same master key.
<jD91mZM2> I see, thanks :D
<jD91mZM2> Wait, does that mean you don't need a separate passphrase for your SSH keys?
<rycee> Yeah.
<jD91mZM2> Wow, amazing. I really need to look into this
<{^_^}> #960 (by jD91mZM2, 19 seconds ago, open): keychain: add xsession integration
<rycee> Yeah, I think that makes sense. Added a comment about the filename, though.
Profpatsch has left #home-manager ["WeeChat 0.4.3"]
pie_ has quit [Remote host closed the connection]
pie_ has joined #home-manager
__monty__ has quit [Quit: leaving]
pie_ has quit [Quit: No Ping reply in 180 seconds.]
pie_ has joined #home-manager
pie_ has quit [Excess Flood]
pie_ has joined #home-manager
pie_ has quit [Ping timeout: 265 seconds]
pie_ has joined #home-manager
pie_ has quit [Ping timeout: 248 seconds]