mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 11:03:57 +00:00
24 lines
432 B
Nix
24 lines
432 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}:
|
||
|
let
|
||
|
cfg = config.programs.ns-usbloader;
|
||
|
in
|
||
|
{
|
||
|
options = {
|
||
|
programs.ns-usbloader = {
|
||
|
enable = lib.mkEnableOption "ns-usbloader application with udev rules applied";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
environment.systemPackages = [ pkgs.ns-usbloader ];
|
||
|
services.udev.packages = [ pkgs.ns-usbloader ];
|
||
|
};
|
||
|
|
||
|
meta.maintainers = pkgs.ns-usbloader.meta.maintainers;
|
||
|
}
|