mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
21 lines
506 B
Nix
21 lines
506 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.programs.projecteur;
|
|
in
|
|
{
|
|
options.programs.projecteur = {
|
|
enable = lib.mkEnableOption (lib.mdDoc "projecteur, an application for the Logitech Spotlight device (and similar)");
|
|
package = lib.mkPackageOption pkgs "projecteur" { };
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
environment.systemPackages = [ cfg.package ];
|
|
services.udev.packages = [ cfg.package ];
|
|
};
|
|
|
|
meta = {
|
|
maintainers = with lib.maintainers; [ benneti drupol ];
|
|
};
|
|
}
|