mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
25 lines
559 B
Nix
25 lines
559 B
Nix
{ 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;
|
|
defaultText = literalExpression "pkgs.flexoptix-app";
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = [ cfg.package ];
|
|
services.udev.packages = [ cfg.package ];
|
|
};
|
|
}
|