nixpkgs/nixos/modules/programs/qdmr.nix
2023-02-01 19:05:17 +01:00

25 lines
521 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.programs.qdmr;
in {
meta.maintainers = [ lib.maintainers.janik ];
options = {
programs.qdmr = {
enable = lib.mkEnableOption (lib.mdDoc "QDMR - a GUI application and command line tool for programming DMR radios");
package = lib.mkPackageOptionMD pkgs "qdmr" { };
};
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];
services.udev.packages = [ cfg.package ];
users.groups.wireshark = {};
};
}