all repos — nixfiles @ 34a3a77898d747eadf7549be53fe75be0d444a46

System and user configuration, managed by nix and home-manager

nitrokey: Enable user hardware access

Alan Pearce
commit

34a3a77898d747eadf7549be53fe75be0d444a46

parent

0cdb66dc99af6cfb54a8369d08ac6b288e6afcd2

2 files changed, 5 insertions(+), 1 deletion(-)

jump to
M modules/configuration/user.nixmodules/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;
M modules/hardware/nitrokey.nixmodules/hardware/nitrokey.nix
@@ -6,6 +6,10 @@ # pkgsUnstable = pkgs;
in { programs.ssh.startAgent = false; + hardware.nitrokey = { + enable = true; + }; + services.pcscd.enable = true; services.tor = {