nitrokey, pynitrokey: install system-wide
This commit is contained in:
parent
aa6edaa1fe
commit
0775edd78f
|
@ -14,7 +14,7 @@ in
|
||||||
[
|
[
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./packages.nix
|
./modules/packages.nix
|
||||||
./modules/nitrokey.nix
|
./modules/nitrokey.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
11
nixos/modules/nitrokey.nix
Normal file
11
nixos/modules/nitrokey.nix
Normal 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"
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue