Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
18 lines
424 B
Nix
18 lines
424 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;
|
|
}
|