b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
25 lines
581 B
Nix
25 lines
581 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.programs.flexoptix-app;
|
|
in {
|
|
options = {
|
|
programs.flexoptix-app = {
|
|
enable = mkEnableOption (lib.mdDoc "FLEXOPTIX app + udev rules");
|
|
|
|
package = mkOption {
|
|
description = lib.mdDoc "FLEXOPTIX app package to use";
|
|
type = types.package;
|
|
default = pkgs.flexoptix-app;
|
|
defaultText = literalExpression "pkgs.flexoptix-app";
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = [ cfg.package ];
|
|
services.udev.packages = [ cfg.package ];
|
|
};
|
|
}
|