summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-10-05 16:38:25 +0200
committerAlan Pearce2017-10-05 16:39:21 +0200
commit34a3a77898d747eadf7549be53fe75be0d444a46 (patch)
tree1185734a8535893137f6c7841c682f8b60124ada
parent0cdb66dc99af6cfb54a8369d08ac6b288e6afcd2 (diff)
downloadnixfiles-34a3a77898d747eadf7549be53fe75be0d444a46.tar.lz
nixfiles-34a3a77898d747eadf7549be53fe75be0d444a46.tar.zst
nixfiles-34a3a77898d747eadf7549be53fe75be0d444a46.zip
nitrokey: Enable user hardware access
-rw-r--r--modules/configuration/user.nix2
-rw-r--r--modules/hardware/nitrokey.nix4
2 files changed, 5 insertions, 1 deletions
diff --git a/modules/configuration/user.nix b/modules/configuration/user.nix
index 1b2b6747..75ba17f2 100644
--- a/modules/configuration/user.nix
+++ b/modules/configuration/user.nix
@@ -3,7 +3,7 @@
 { users.extraUsers.alan = {
     description = "Alan Pearce";
     isNormalUser = true;
-    extraGroups = [ "audio" "wheel" "adbusers" "docker" ];
+    extraGroups = [ "audio" "wheel" "adbusers" "docker" "nitrokey" ];
     shell = "/run/current-system/sw/bin/zsh";
     home = "/home/alan";
     uid = 1000;
diff --git a/modules/hardware/nitrokey.nix b/modules/hardware/nitrokey.nix
index ac85e352..7de38578 100644
--- a/modules/hardware/nitrokey.nix
+++ b/modules/hardware/nitrokey.nix
@@ -6,6 +6,10 @@ let
 in
 { programs.ssh.startAgent = false;
 
+  hardware.nitrokey = {
+    enable = true;
+  };
+
   services.pcscd.enable = true;
 
   services.tor = {