2024-12-10 20:26:33 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2022-12-25 23:44:40 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.xastir;
|
2024-12-10 20:26:33 +01:00
|
|
|
in
|
|
|
|
{
|
2024-04-17 14:37:58 +03:00
|
|
|
meta.maintainers = with lib.maintainers; [ melling ];
|
2022-12-25 23:44:40 +00:00
|
|
|
|
|
|
|
options.programs.xastir = {
|
2024-04-17 14:37:58 +03:00
|
|
|
enable = lib.mkEnableOption "Xastir Graphical APRS client";
|
2022-12-25 23:44:40 +00:00
|
|
|
};
|
|
|
|
|
2024-04-17 14:37:58 +03:00
|
|
|
config = lib.mkIf cfg.enable {
|
2022-12-25 23:44:40 +00:00
|
|
|
environment.systemPackages = with pkgs; [ xastir ];
|
|
|
|
security.wrappers.xastir = {
|
|
|
|
source = "${pkgs.xastir}/bin/xastir";
|
|
|
|
capabilities = "cap_net_raw+p";
|
|
|
|
owner = "root";
|
|
|
|
group = "root";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|