nixos/pulseview: init module (#342878)

This commit is contained in:
h7x4 2024-09-19 00:45:04 +02:00 committed by GitHub
commit 1a88d90413
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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
];
};
};
}