2023-01-18 20:46:53 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.qdmr;
|
|
|
|
in {
|
2024-04-27 12:37:51 +00:00
|
|
|
meta.maintainers = [ ];
|
2023-01-18 20:46:53 +00:00
|
|
|
|
|
|
|
options = {
|
|
|
|
programs.qdmr = {
|
|
|
|
enable = lib.mkEnableOption "QDMR - a GUI application and command line tool for programming DMR radios";
|
2023-11-30 18:03:14 +00:00
|
|
|
package = lib.mkPackageOption pkgs "qdmr" { };
|
2023-01-18 20:46:53 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
services.udev.packages = [ cfg.package ];
|
2023-02-06 18:39:42 +00:00
|
|
|
users.groups.dialout = {};
|
2023-01-18 20:46:53 +00:00
|
|
|
};
|
|
|
|
}
|