mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
ef176dcf7e
conversions were done using https://github.com/pennae/nix-doc-munge using (probably) rev f34e145 running nix-doc-munge nixos/**/*.nix nix-doc-munge --import nixos/**/*.nix the tool ensures that only changes that could affect the generated manual *but don't* are committed, other changes require manual review and are discarded.
26 lines
594 B
Nix
26 lines
594 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.hardware.saleae-logic;
|
|
in
|
|
{
|
|
options.hardware.saleae-logic = {
|
|
enable = lib.mkEnableOption (lib.mdDoc "udev rules for Saleae Logic devices");
|
|
|
|
package = lib.mkOption {
|
|
type = lib.types.package;
|
|
default = pkgs.saleae-logic-2;
|
|
defaultText = lib.literalExpression "pkgs.saleae-logic-2";
|
|
description = lib.mdDoc ''
|
|
Saleae Logic package to use.
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.udev.packages = [ cfg.package ];
|
|
};
|
|
|
|
meta.maintainers = with lib.maintainers; [ chivay ];
|
|
}
|