From 34a3a77898d747eadf7549be53fe75be0d444a46 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 5 Oct 2017 16:38:25 +0200 Subject: nitrokey: Enable user hardware access --- modules/configuration/user.nix | 2 +- modules/hardware/nitrokey.nix | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 = { -- cgit 1.4.1