2022-12-28 21:21:41 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.xastir;
|
|
|
|
in {
|
2024-05-15 15:35:15 +00:00
|
|
|
meta.maintainers = with lib.maintainers; [ melling ];
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
options.programs.xastir = {
|
2024-05-15 15:35:15 +00:00
|
|
|
enable = lib.mkEnableOption "Xastir Graphical APRS client";
|
2022-12-28 21:21:41 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2022-12-28 21:21:41 +00:00
|
|
|
environment.systemPackages = with pkgs; [ xastir ];
|
|
|
|
security.wrappers.xastir = {
|
|
|
|
source = "${pkgs.xastir}/bin/xastir";
|
|
|
|
capabilities = "cap_net_raw+p";
|
|
|
|
owner = "root";
|
|
|
|
group = "root";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|