diff --git a/flake.nix b/flake.nix index 45ad8e9..3701abd 100644 --- a/flake.nix +++ b/flake.nix @@ -95,10 +95,19 @@ nonrecursive-unstable-pkgs = import nixpkgs-unstable { inherit system; config.allowUnfree = true; + config.segger-jlink.acceptLicense = true; + config.permittedInsecurePackages = [ + "segger-jlink-qt4-794s" + ]; }; in [ (self: super: { - inherit (nonrecursive-unstable-pkgs) atuin wstunnel; + inherit (nonrecursive-unstable-pkgs) + atuin + wstunnel + nrf-udev + nrfutil + ; }) # https://github.com/NixOS/nixpkgs/pull/251706 diff --git a/hosts/dosei/configuration.nix b/hosts/dosei/configuration.nix index fa20e8c..80549f8 100644 --- a/hosts/dosei/configuration.nix +++ b/hosts/dosei/configuration.nix @@ -3,6 +3,8 @@ imports = [ ./hardware-configuration.nix + ./programs/nrfutil.nix + ./services/avahi.nix ./services/docker.nix ./services/jenkins.nix diff --git a/hosts/dosei/programs/nrfutil.nix b/hosts/dosei/programs/nrfutil.nix new file mode 100644 index 0000000..982e1c0 --- /dev/null +++ b/hosts/dosei/programs/nrfutil.nix @@ -0,0 +1,13 @@ +{ pkgs, ... }: +{ + environment.systemPackages = with pkgs; [ + nrfutil + nrfconnect + nrf-command-line-tools + ]; + + services.udev.packages = with pkgs; [ + nrf-udev + segger-jlink + ]; +} \ No newline at end of file