nixpkgs/nixos/modules/programs/qdmr.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
505 B
Nix
Raw Normal View History

2023-01-18 21:46:53 +01:00
{
config,
lib,
pkgs,
...
}:
let
cfg = config.programs.qdmr;
in {
meta.maintainers = [ lib.maintainers.janik ];
options = {
programs.qdmr = {
enable = lib.mkEnableOption "QDMR - a GUI application and command line tool for programming DMR radios";
package = lib.mkPackageOption pkgs "qdmr" { };
2023-01-18 21:46:53 +01:00
};
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];
services.udev.packages = [ cfg.package ];
2023-02-06 19:39:42 +01:00
users.groups.dialout = {};
2023-01-18 21:46:53 +01:00
};
}