mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
19 lines
436 B
Nix
19 lines
436 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
let
|
||
|
cfg = config.programs.ns-usbloader;
|
||
|
in
|
||
|
{
|
||
|
options = {
|
||
|
programs.ns-usbloader = {
|
||
|
enable = lib.mkEnableOption (lib.mdDoc "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;
|
||
|
}
|