nitrokey, pynitrokey: install system-wide

This commit is contained in:
Trolli Schmittlauch 2023-08-30 23:08:16 +02:00
parent aa6edaa1fe
commit 0775edd78f
2 changed files with 12 additions and 1 deletions

View file

@ -14,7 +14,7 @@ in
[
# Include the results of the hardware scan.
./hardware-configuration.nix
./packages.nix
./modules/packages.nix
./modules/nitrokey.nix
];

View file

@ -0,0 +1,11 @@
{ pkgs, lib, ...}:
{
hardware.nitrokey.enable = true;
environment.systemPackages = [ pkgs.pynitrokey ];
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"nrfutil"
"pc-ble-driver-py"
"pc-ble-driver"
"pypemicro"
];
}