1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

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
];
};
};
}