2023-02-02 18:25:31 +00:00
|
|
|
{
|
|
|
|
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");
|
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
|
|
|
};
|
|
|
|
}
|