summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-09-09 14:43:09 +0200
committerAlan Pearce2017-09-09 16:49:30 +0200
commit7cff825c1df5494c6c070ad34f5288b9b7786cfc (patch)
treeeaf589b7dddee5f72d687ad67bef0d34f28adee6
parent3bea12cd01499c02b0f5d8b33b658b529ebf9d1e (diff)
downloadnixfiles-7cff825c1df5494c6c070ad34f5288b9b7786cfc.tar.lz
nixfiles-7cff825c1df5494c6c070ad34f5288b9b7786cfc.tar.zst
nixfiles-7cff825c1df5494c6c070ad34f5288b9b7786cfc.zip
Add Nitrokey/GnuPG module
-rw-r--r--modules/nitrokey.nix24
-rw-r--r--satoshipad.nix1
2 files changed, 25 insertions, 0 deletions
diff --git a/modules/nitrokey.nix b/modules/nitrokey.nix
new file mode 100644
index 00000000..a256c33d
--- /dev/null
+++ b/modules/nitrokey.nix
@@ -0,0 +1,24 @@
+{ config, nixpkgs, ... }:
+
+let
+  pkgsUnstable = import <nixos-unstable> {};
+  # pkgsUnstable = pkgs;
+in
+{ services.pcscd.enable = true;
+
+  services.tor = {
+    enable = true;
+    client = {
+      enable = true;
+      socksListenAddress = "9050 IPv6Traffic";
+    };
+    torsocks = {
+      enable = true;
+    };
+  };
+
+  environment.systemPackages = [
+    pkgsUnstable.gnupg
+    pkgsUnstable.nitrokey-app
+  ];
+}
diff --git a/satoshipad.nix b/satoshipad.nix
index 7bd39268..624ac593 100644
--- a/satoshipad.nix
+++ b/satoshipad.nix
@@ -10,6 +10,7 @@
     ./modules/adb.nix
     ./modules/syncthing.nix
     ./modules/hidpi.nix
+    ./modules/nitrokey.nix
   ];
 
   networking.hostName = "satoshipad";