mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 11:03:57 +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 ];
|
||
|
};
|
||
|
}
|