2023-08-04 22:07:22 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.programs.ns-usbloader;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
programs.ns-usbloader = {
|
2024-04-21 15:54:59 +00:00
|
|
|
enable = lib.mkEnableOption "ns-usbloader application with udev rules applied";
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
environment.systemPackages = [ pkgs.ns-usbloader ];
|
|
|
|
services.udev.packages = [ pkgs.ns-usbloader ];
|
|
|
|
};
|
|
|
|
|
|
|
|
meta.maintainers = pkgs.ns-usbloader.meta.maintainers;
|
|
|
|
}
|