Skip to content

Commit

Permalink
nixos/pulseview: init module (NixOS#342878)
Browse files Browse the repository at this point in the history
  • Loading branch information
h7x4 authored Sep 18, 2024
2 parents 2a1b0df + 69ca85c commit 1a88d90
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 28 additions & 0 deletions nixos/modules/programs/pulseview.nix
Original file line number Diff line number Diff line change
@@ -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
];
};
};
}

0 comments on commit 1a88d90

Please sign in to comment.