diff options
author | Janik H <janik@aq0.de> | 2023-01-18 21:46:53 +0100 |
---|---|---|
committer | Janik H <janik@aq0.de> | 2023-02-01 19:05:17 +0100 |
commit | 68e10c242b232bc1c6133ee673dc99a427f9cdf0 (patch) | |
tree | ce2b9f0c0e9a635a24f31a71e0faf9d2f364ee0c /nixos/modules/programs/qdmr.nix | |
parent | d0c759feae0e94c7999b3924dbdf4d487594479e (diff) |
nixos/qdmr: init
Diffstat (limited to 'nixos/modules/programs/qdmr.nix')
-rw-r--r-- | nixos/modules/programs/qdmr.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nixos/modules/programs/qdmr.nix b/nixos/modules/programs/qdmr.nix new file mode 100644 index 000000000000..c0b1984eff91 --- /dev/null +++ b/nixos/modules/programs/qdmr.nix @@ -0,0 +1,25 @@ +{ + 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.wireshark = {}; + }; +} |