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.
This commit is contained in:
parent
cea145942d
commit
69ca85cc7b
@ -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 New Issue
Block a user