mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
26 lines
519 B
Nix
26 lines
519 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.dialout = {};
|
|
};
|
|
}
|