about summary refs log tree commit diff
path: root/nixos/modules/programs/pulseview.nix
blob: f8db5a467d53c518ed75aef5017ec5e8720be978 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
      ];
    };
  };
}