2021-04-17 18:33:41 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.flexoptix-app;
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
programs.flexoptix-app = {
|
2022-08-28 21:18:44 +02:00
|
|
|
enable = mkEnableOption (lib.mdDoc "FLEXOPTIX app + udev rules");
|
2021-04-17 18:33:41 +02:00
|
|
|
|
|
|
|
package = mkOption {
|
2022-07-28 23:19:15 +02:00
|
|
|
description = lib.mdDoc "FLEXOPTIX app package to use";
|
2021-04-17 18:33:41 +02:00
|
|
|
type = types.package;
|
|
|
|
default = pkgs.flexoptix-app;
|
2021-10-03 18:06:03 +02:00
|
|
|
defaultText = literalExpression "pkgs.flexoptix-app";
|
2021-04-17 18:33:41 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
services.udev.packages = [ cfg.package ];
|
|
|
|
};
|
|
|
|
}
|