nixpkgs/nixos/modules/programs/pulseview.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
445 B
Nix
Raw Normal View History

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