mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
21 lines
442 B
Nix
21 lines
442 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.programs.projecteur;
|
|
in
|
|
{
|
|
options.programs.projecteur = {
|
|
enable = lib.mkEnableOption (lib.mdDoc "projecteur");
|
|
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 ];
|
|
};
|
|
}
|