diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 5097218..20c09c3 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -14,7 +14,7 @@ in [ # Include the results of the hardware scan. ./hardware-configuration.nix - ./packages.nix + ./modules/packages.nix ./modules/nitrokey.nix ]; diff --git a/nixos/modules/nitrokey.nix b/nixos/modules/nitrokey.nix new file mode 100644 index 0000000..dc6ed75 --- /dev/null +++ b/nixos/modules/nitrokey.nix @@ -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" +]; +}