about summary refs log tree commit diff
path: root/ops/nixos/nugget
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-02-05T23·03+0000
committerVincent Ambo <tazjin@google.com>2020-02-07T12·14+0000
commitba20ee65f61664431c4d1f3b6d2ea9d6739fb6e9 (patch)
tree1298f2387e33e6c212c52dc89bb190764010738e /ops/nixos/nugget
parentc56968a767024ceaa2b7df984c5501860a4456b7 (diff)
feat(ops/nixos/nugget): Enable pcscd & install Yubikey tools r/478
Diffstat (limited to 'ops/nixos/nugget')
-rw-r--r--ops/nixos/nugget/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/ops/nixos/nugget/default.nix b/ops/nixos/nugget/default.nix
index d4b5b6f7e6d6..8e7c653c4b4b 100644
--- a/ops/nixos/nugget/default.nix
+++ b/ops/nixos/nugget/default.nix
@@ -130,6 +130,8 @@ in pkgs.lib.fix(self: {
       unzip
       vlc
       xclip
+      yubico-piv-tool
+      yubikey-personalization
     ]);
 
     fileSystems = {
@@ -183,6 +185,12 @@ in pkgs.lib.fix(self: {
     services.openssh.enable = true;
     services.keybase.enable = true;
 
+    # Required for Yubikey usage as smartcard
+    services.pcscd.enable = true;
+    services.udev.packages = [
+      nixpkgs.yubikey-personalization
+    ];
+
     services.xserver = {
       enable = true;
       layout = "us";