From 7d7d0868ce2fc2642392d46e2fa0a54c13454743 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Wed, 25 Sep 2024 13:00:06 +0200 Subject: [PATCH] dosei: install nrf tools --- flake.nix | 11 ++++++++++- hosts/dosei/configuration.nix | 2 ++ hosts/dosei/programs/nrfutil.nix | 13 +++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 hosts/dosei/programs/nrfutil.nix 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