2021-04-17 16:33:41 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.flexoptix-app;
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
programs.flexoptix-app = {
|
2024-04-17 11:37:58 +00:00
|
|
|
enable = lib.mkEnableOption "FLEXOPTIX app + udev rules";
|
2021-04-17 16:33:41 +00:00
|
|
|
|
2024-04-17 11:37:58 +00:00
|
|
|
package = lib.mkPackageOption pkgs "flexoptix-app" { };
|
2021-04-17 16:33:41 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-04-17 11:37:58 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2021-04-17 16:33:41 +00:00
|
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
services.udev.packages = [ cfg.package ];
|
|
|
|
};
|
|
|
|
}
|