feat(ssh): enable ssh-agent

ssh-agent is useful for jj, as it doesn't support using openssh so can't
use keys in another way, and radicle, which when unlocked uses the
ssh-agent to store keys. It may also be nicer to use the agent than to
mess with keys in our '~/.ssh/config's

To start with, we can enable the systemd service. We should also have
a service to add all keys with known names to the agent.

Additionally, we need to start niri in a different way for it to use the
agent: for services that set variables, such as ssh-agent.service, we
can't use systemd-cat and capture them. Running niri with systemd-run
allows it to pick them up, letting us have access to SSH_AUTH_SOCK when
started with systemd

Change-Id: I1486e173f357d743172ec738bd3939dd619a003f
Reviewed-on: https://git.clicks.codes/c/Chimera/NixFiles/+/828
Reviewed-by: Samuel Shuert <coded@clicks.codes>
Tested-by: Skyler Grey <minion@clicks.codes>
2 files changed
tree: 3d01a52f5ec4de8d3f1dce18caff9a72d25ff118
  1. homes/
  2. modules/
  3. packages/
  4. systems/
  5. .editorconfig
  6. .gitignore
  7. .gitreview
  8. .sops.nix
  9. configure.sh
  10. flake.lock
  11. flake.nix
  12. LICENSE.md
  13. README.md
  14. TODO.md
README.md

What is this?

Chimera is a shared NixOS and home-manager configuration, built using flakes and Snowfall Lib. Our aims are to support all of our members' needs while allowing us to share work that would otherwise be duplicated between us.

We are opinionated and often will not provide much customization in our modules, only adding more than enable where we believe there to be a distinct probability that multiple members will choose differently.

Who shares it?

Currently:

If you'd like to join us, send us a message at chimera@clicks.codes!

Can I get my patch submitted?

For sure! You need a review from at least 1 other chimera member who your patch affects. If there's nobody matching this description and you are a chimera member, submit away! If you're not a member then you'll need to become one - let us know you're interested at chimera@clicks.codes

License

Chimera is licensed under AGPL-3.0. We use this as our default license because we believe it gives a lot of freedoms to you without letting you restrict them for other people. For any file which does not specify otherwise you may use the code exclusively under this license. You may find a copy of this license in ./LICENSE.md or at https://www.gnu.org/licenses/agpl-3.0.en.html

Some of our code is adapted from other people's work and that code, as well as all code written by us in files containing substantial portions of their work is available under their license. For files where this applies we will include a header containing the full license text and copyright notices.