Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trezor-agent: add systemd service #29831

Closed
wants to merge 4 commits into from
Closed

Conversation

jb55
Copy link
Contributor

@jb55 jb55 commented Sep 27, 2017

Motivation for this change

Option to enable a trezor-agent service that allows you to use your Trezor as a GnuPG agent. This builds upon #28656.

Closes #28656

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

trezor-agent now splits agents into different packages. This commit still points
trezor_agent to the trezor-specific agent to maintain backwards compatibility.

We should probably abstract this a bit into ledgernano_agent, keepkey_agent, etc
Needed for the system service
systemd.user.services.trezor-agent = {
description = "Trezor GnuPG Agent";

wantedBy = [ "multi-user.target" ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

multi-user.target isn't a valid target for user sessions.

owner = "romanz";
rev = "v${version}";
sha256 = "1wrmf76016ksx394l1xknnqn08sc5pid5ihri619cd83zsxpkfvk";
}}/agents/trezor";

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's wrong with the pypi package?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The author uploaded a new version, I'm going to update this PR this evening (-0700)

@jb55
Copy link
Contributor Author

jb55 commented Sep 27, 2017 via email

@jb55
Copy link
Contributor Author

jb55 commented Sep 27, 2017 via email

Allows you to use your Trezor as a GnuPG agent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants