diff options
author | Alan Pearce | 2019-05-23 10:54:17 +0200 |
---|---|---|
committer | Alan Pearce | 2019-05-28 09:58:41 +0200 |
commit | 50c50c72354d079ef1a96e6415407da20808a6b8 (patch) | |
tree | 1950aacc25ebb502f8da19b489643dc0ff107b97 /modules/hardware | |
parent | b8f11db00e56bdbe72d28227c389a09e486f2217 (diff) | |
download | nixos-configuration-50c50c72354d079ef1a96e6415407da20808a6b8.tar.lz nixos-configuration-50c50c72354d079ef1a96e6415407da20808a6b8.tar.zst nixos-configuration-50c50c72354d079ef1a96e6415407da20808a6b8.zip |
Update Trezor setup
Diffstat (limited to 'modules/hardware')
-rw-r--r-- | modules/hardware/trezor.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/modules/hardware/trezor.nix b/modules/hardware/trezor.nix index ad938e9..ff1f8e3 100644 --- a/modules/hardware/trezor.nix +++ b/modules/hardware/trezor.nix @@ -1,4 +1,14 @@ -{ config, pkgs, ... }: +{ config, lib, pkgs, ... }: { services.trezord.enable = true; + environment.systemPackages = with pkgs; [ + gnupg + pinentry + (python3.withPackages(ps: with ps; [ trezor_agent wheel ])) + ]; + environment.variables.GNUPGHOME = "$HOME/.gnupg/trezor/"; + programs.gnupg.agent = { + enable = lib.mkForce false; + enableSSHSupport = lib.mkForce false; + }; } |