mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
18 lines
398 B
Nix
18 lines
398 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
cfg = config.programs.flexoptix-app;
|
|
in {
|
|
options = {
|
|
programs.flexoptix-app = {
|
|
enable = lib.mkEnableOption "FLEXOPTIX app + udev rules";
|
|
|
|
package = lib.mkPackageOption pkgs "flexoptix-app" { };
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
environment.systemPackages = [ cfg.package ];
|
|
services.udev.packages = [ cfg.package ];
|
|
};
|
|
}
|