From b9cd78e43a6f20c34f3ef9c0348bb2a3bff24129 Mon Sep 17 00:00:00 2001 From: LUCAZEAU Alexandre Date: Sat, 25 Nov 2023 21:19:34 +0100 Subject: [PATCH] ADD nitrokey support --- hosts/d2nix/nixos/configuration.nix | 1 + hosts/d2nix/nixos/nitrokey.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 hosts/d2nix/nixos/nitrokey.nix diff --git a/hosts/d2nix/nixos/configuration.nix b/hosts/d2nix/nixos/configuration.nix index 9587412..8742eee 100644 --- a/hosts/d2nix/nixos/configuration.nix +++ b/hosts/d2nix/nixos/configuration.nix @@ -11,6 +11,7 @@ ./services.nix ./extra_hw.nix ./gnome.nix + ./nitrokey.nix ]; boot = { diff --git a/hosts/d2nix/nixos/nitrokey.nix b/hosts/d2nix/nixos/nitrokey.nix new file mode 100644 index 0000000..236234e --- /dev/null +++ b/hosts/d2nix/nixos/nitrokey.nix @@ -0,0 +1,14 @@ + {config, pkgs, lib, ... }: + +{ + hardware.nitrokey = { + enable = true; + }; + + services.pcscd.enable = true; + + environment.systemPackages = with pkgs; [ + nitrokey-app + ]; +} +