summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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 1b2b674..75ba17f 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 ac85e35..7de3857 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 = {