mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
0a37316d6c
This commit replaces a lot of usages of `mkOption` with the package type, to be `mkPackageOption`, in order to reduce the amount of code.
21 lines
409 B
Nix
21 lines
409 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.programs.flexoptix-app;
|
|
in {
|
|
options = {
|
|
programs.flexoptix-app = {
|
|
enable = mkEnableOption (lib.mdDoc "FLEXOPTIX app + udev rules");
|
|
|
|
package = mkPackageOption pkgs "flexoptix-app" { };
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = [ cfg.package ];
|
|
services.udev.packages = [ cfg.package ];
|
|
};
|
|
}
|