summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
authorAlan Pearce2019-05-23 10:54:17 +0200
committerAlan Pearce2019-05-28 09:58:41 +0200
commit50c50c72354d079ef1a96e6415407da20808a6b8 (patch)
tree1950aacc25ebb502f8da19b489643dc0ff107b97 /modules
parentb8f11db00e56bdbe72d28227c389a09e486f2217 (diff)
downloadnixfiles-50c50c72354d079ef1a96e6415407da20808a6b8.tar.lz
nixfiles-50c50c72354d079ef1a96e6415407da20808a6b8.tar.zst
nixfiles-50c50c72354d079ef1a96e6415407da20808a6b8.zip
Update Trezor setup
Diffstat (limited to 'modules')
-rw-r--r--modules/hardware/trezor.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/modules/hardware/trezor.nix b/modules/hardware/trezor.nix
index ad938e9a..ff1f8e38 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;
+  };
 }