nixos/qdmr: init
This commit is contained in:
parent
d0c759feae
commit
68e10c242b
|
@ -214,6 +214,7 @@
|
||||||
./programs/partition-manager.nix
|
./programs/partition-manager.nix
|
||||||
./programs/plotinus.nix
|
./programs/plotinus.nix
|
||||||
./programs/proxychains.nix
|
./programs/proxychains.nix
|
||||||
|
./programs/qdmr.nix
|
||||||
./programs/qt5ct.nix
|
./programs/qt5ct.nix
|
||||||
./programs/rog-control-center.nix
|
./programs/rog-control-center.nix
|
||||||
./programs/rust-motd.nix
|
./programs/rust-motd.nix
|
||||||
|
|
25
nixos/modules/programs/qdmr.nix
Normal file
25
nixos/modules/programs/qdmr.nix
Normal file
|
@ -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 = {};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue