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:
commit
1a88d90413
|
@ -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
|
||||
|
|
28
nixos/modules/programs/pulseview.nix
Normal file
28
nixos/modules/programs/pulseview.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue