2021-04-25 03:57:28 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.flexoptix-app;
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
programs.flexoptix-app = {
|
2022-09-09 14:08:57 +00:00
|
|
|
enable = mkEnableOption (lib.mdDoc "FLEXOPTIX app + udev rules");
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
package = mkOption {
|
2022-08-12 12:06:08 +00:00
|
|
|
description = lib.mdDoc "FLEXOPTIX app package to use";
|
2021-04-25 03:57:28 +00:00
|
|
|
type = types.package;
|
|
|
|
default = pkgs.flexoptix-app;
|
2021-10-06 13:57:05 +00:00
|
|
|
defaultText = literalExpression "pkgs.flexoptix-app";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
services.udev.packages = [ cfg.package ];
|
|
|
|
};
|
|
|
|
}
|