diff options
author | Marek Mahut <marek.mahut@gmail.com> | 2019-08-16 16:58:48 +0200 |
---|---|---|
committer | Marek Mahut <marek.mahut@gmail.com> | 2019-08-16 16:58:48 +0200 |
commit | 5712bea91b1b5f01859a870c212ec520d644dc63 (patch) | |
tree | 3b892aaf507bc746b878f8a22a87ea5a0acce6bd | |
parent | 53e8129017924d90287cb8cef2c2b05f323080a0 (diff) | |
download | nixlib-5712bea91b1b5f01859a870c212ec520d644dc63.tar nixlib-5712bea91b1b5f01859a870c212ec520d644dc63.tar.gz nixlib-5712bea91b1b5f01859a870c212ec520d644dc63.tar.bz2 nixlib-5712bea91b1b5f01859a870c212ec520d644dc63.tar.lz nixlib-5712bea91b1b5f01859a870c212ec520d644dc63.tar.xz nixlib-5712bea91b1b5f01859a870c212ec520d644dc63.tar.zst nixlib-5712bea91b1b5f01859a870c212ec520d644dc63.zip |
trezord: adding emultor support
-rw-r--r-- | nixos/modules/services/hardware/trezord.nix | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/nixos/modules/services/hardware/trezord.nix b/nixos/modules/services/hardware/trezord.nix index c06a0665d02f..bb55cc2a9ad1 100644 --- a/nixos/modules/services/hardware/trezord.nix +++ b/nixos/modules/services/hardware/trezord.nix @@ -16,6 +16,22 @@ in { Enable Trezor bridge daemon, for use with Trezor hardware bitcoin wallets. ''; }; + + emulator.enable = mkOption { + type = types.bool; + default = false; + description = '' + Enable Trezor emulator support. + ''; + }; + + emulator.port = mkOption { + type = types.port; + default = 21324; + description = '' + Listening port for the Trezor emulator. + ''; + }; }; }; @@ -44,7 +60,7 @@ in { path = []; serviceConfig = { Type = "simple"; - ExecStart = "${pkgs.trezord}/bin/trezord-go"; + ExecStart = "${pkgs.trezord}/bin/trezord-go ${optionalString cfg.emulator.enable "-e ${builtins.toString cfg.emulator.port}"}"; User = "trezord"; }; }; |