2023-10-12 17:00:03 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.projecteur;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.programs.projecteur = {
|
2024-04-13 14:54:15 +02:00
|
|
|
enable = lib.mkEnableOption "projecteur, an application for the Logitech Spotlight device (and similar)";
|
2023-11-30 19:03:14 +01:00
|
|
|
package = lib.mkPackageOption pkgs "projecteur" { };
|
2023-10-12 17:00:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
services.udev.packages = [ cfg.package ];
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
maintainers = with lib.maintainers; [ benneti drupol ];
|
|
|
|
};
|
|
|
|
}
|