mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
26 lines
472 B
Nix
26 lines
472 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.programs.bazecor;
|
|
in
|
|
{
|
|
meta.maintainers = with lib.maintainers; [ amesgen ];
|
|
|
|
options = {
|
|
programs.bazecor = {
|
|
enable = lib.mkEnableOption "Bazecor, the graphical configurator for Dygma Products";
|
|
package = lib.mkPackageOption pkgs "bazecor" { };
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
environment.systemPackages = [ cfg.package ];
|
|
services.udev.packages = [ cfg.package ];
|
|
};
|
|
}
|