f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
25 lines
483 B
Nix
25 lines
483 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.programs.qdmr;
|
|
in {
|
|
meta.maintainers = [ ];
|
|
|
|
options = {
|
|
programs.qdmr = {
|
|
enable = lib.mkEnableOption "QDMR - a GUI application and command line tool for programming DMR radios";
|
|
package = lib.mkPackageOption pkgs "qdmr" { };
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
environment.systemPackages = [ cfg.package ];
|
|
services.udev.packages = [ cfg.package ];
|
|
users.groups.dialout = {};
|
|
};
|
|
}
|