2021-04-25 03:57:28 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.flexoptix-app;
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
programs.flexoptix-app = {
|
2024-04-21 15:54:59 +00:00
|
|
|
enable = mkEnableOption "FLEXOPTIX app + udev rules";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
package = mkPackageOption pkgs "flexoptix-app" { };
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
services.udev.packages = [ cfg.package ];
|
|
|
|
};
|
|
|
|
}
|