3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/programs/flexoptix-app.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
581 B
Nix
Raw Normal View History

2021-04-17 17:33:41 +01:00
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.programs.flexoptix-app;
in {
options = {
programs.flexoptix-app = {
enable = mkEnableOption (lib.mdDoc "FLEXOPTIX app + udev rules");
2021-04-17 17:33:41 +01:00
package = mkOption {
description = lib.mdDoc "FLEXOPTIX app package to use";
2021-04-17 17:33:41 +01:00
type = types.package;
default = pkgs.flexoptix-app;
defaultText = literalExpression "pkgs.flexoptix-app";
2021-04-17 17:33:41 +01:00
};
};
};
config = mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];
services.udev.packages = [ cfg.package ];
};
}