nixos/pulseview: init module

Pulseview needs the libsigrok udev rules to be installed, this module
removes the need for the enduser to think about this dependency.
This commit is contained in:
Nydragon 2024-09-18 22:09:53 +02:00
parent cea145942d
commit 69ca85cc7b
No known key found for this signature in database
2 changed files with 29 additions and 0 deletions

View File

@ -265,6 +265,7 @@
./programs/pqos-wrapper.nix
./programs/projecteur.nix
./programs/proxychains.nix
./programs/pulseview.nix
./programs/qdmr.nix
./programs/qgroundcontrol.nix
./programs/qt5ct.nix

View File

@ -0,0 +1,28 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.programs.pulseview;
in
{
options.programs.pulseview = {
enable = lib.mkEnableOption "pulseview, a sigrok GUI";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [
pkgs.pulseview
];
services.udev = {
packages = [
# Pulseview needs some udev rules provided by libsigrok to access devices
pkgs.libsigrok
];
};
};
}