2021-04-17 16:33:41 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.flexoptix-app;
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
programs.flexoptix-app = {
|
|
|
|
enable = mkEnableOption "FLEXOPTIX app + udev rules";
|
|
|
|
|
|
|
|
package = mkOption {
|
|
|
|
description = "FLEXOPTIX app package to use";
|
|
|
|
type = types.package;
|
|
|
|
default = pkgs.flexoptix-app;
|
2021-10-03 16:06:03 +00:00
|
|
|
defaultText = literalExpression "pkgs.flexoptix-app";
|
2021-04-17 16:33:41 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
services.udev.packages = [ cfg.package ];
|
|
|
|
};
|
|
|
|
}
|