nixpkgs/nixos/modules/programs/pulseview.nix
Nydragon 69ca85cc7b
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.
2024-09-18 23:20:57 +02:00

29 lines
445 B
Nix

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