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.
20 lines
409 B
Nix
20 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 ];
|
|
};
|
|
}
|