srid / nixos-config

KISS NixOS configuration based on Flakes & flake-parts (supports macOS too)
433 stars 17 forks source link

Nixify .ssh/config using home-manager #43

Closed LovingMelody closed 8 months ago

LovingMelody commented 8 months ago

This commit nixify's the .ssh/config using home-manager resolves #36

srid commented 8 months ago

Thanks! Works great.

One thing I find strange is that after activating the home configuration, ~/.ssh/config is nowhere to be found (even though it should have been created) - yet I can ssh to these hosts by their alias in the config. /etc/ssh doesn't contain my config either.

srid commented 8 months ago

Oh wait, ssh is probably using some other host cache (even across reboot of the mac). Settings like ForwardAgent, however, are not being used after this PR.

srid commented 8 months ago

Alright, we just need programs.ssh.enable = true;.

For the record, I don't have permissions to push commits to your branch, so I'll open a new PR with additional commits of my own.

LovingMelody commented 8 months ago

I have added the requested changes, please adjust the ForwardAgent as you would like. Just as a note, identityAgent will require that 1password is installed unless you override it. You may wish to make 1password optional as a whole as I have done in my config but that is out of scope for this PR.