2023-02-02 18:25:31 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.qdmr;
|
|
|
|
in {
|
2024-07-27 06:49:29 +00:00
|
|
|
meta.maintainers = [ ];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
options = {
|
|
|
|
programs.qdmr = {
|
2024-04-21 15:54:59 +00:00
|
|
|
enable = lib.mkEnableOption "QDMR - a GUI application and command line tool for programming DMR radios";
|
2024-01-02 11:29:13 +00:00
|
|
|
package = lib.mkPackageOption pkgs "qdmr" { };
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
services.udev.packages = [ cfg.package ];
|
2023-02-09 11:40:11 +00:00
|
|
|
users.groups.dialout = {};
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
}
|