services.gpg-agent: darwin compatibility#3840
services.gpg-agent: darwin compatibility#3840elohmeier wants to merge 1 commit intonix-community:masterfrom
Conversation
| '') cfg.sshKeys; | ||
| }) | ||
|
|
||
| (mkIf (pkgs.stdenv.isDarwin && cfg.enableSshSupport) { |
There was a problem hiding this comment.
Since #2915, there's no need for the platform conditions any more.
| (mkIf pkgs.stdenv.isLinux { | ||
| assertions = [ | ||
| (hm.assertions.assertPlatform "services.gpg-agent" pkgs platforms.linux) | ||
| ]; |
There was a problem hiding this comment.
We should remove this assertion as well.
|
@elohmeier Thanks for raising this! Great timing, I was just about to open a PR myself, so was delighted to see this. Not sure how much testing you did on various systems, but with your changes, it doesn't work on macOS Ventura. There are some slight nuances with this module's original intention only being for Linux. I have an updated version of this that is fully working, also with ssh-agent support working. I also addressed @ncfavier's comments. If you'd be interested in these contributions, how would you like me to submit them? A PR to your branch? EDIT: I've also just seen #2964 which addresses nicely some of the nuances I mentioned. It's close to what I have, but admittedly some things handled better :) |
|
Thank you for your contribution! I marked this pull request as stale due to inactivity. Please read the relevant sections below before commenting. If you are the original author of the PR
If you are not the original author of the PR
|
|
Closing in favor of #2964 |
Description
Added compatibility for Darwin to services.gpg-agent.
Checklist
Change is backwards compatible.
Code formatted with
./format.Code tested through
nix-shell --pure tests -A run.all.Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
If this PR adds a new module
Added myself as module maintainer. See example.
Added myself and the module files to
.github/CODEOWNERS.