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