1{ config, lib, pkgs, ... }:
2
3with lib;
4
5let
6 cfg = config.programs.xastir;
7in {
8 meta.maintainers = with maintainers; [ melling ];
9
10 options.programs.xastir = {
11 enable = mkEnableOption (mdDoc "Xastir Graphical APRS client");
12 };
13
14 config = mkIf cfg.enable {
15 environment.systemPackages = with pkgs; [ xastir ];
16 security.wrappers.xastir = {
17 source = "${pkgs.xastir}/bin/xastir";
18 capabilities = "cap_net_raw+p";
19 owner = "root";
20 group = "root";
21 };
22 };
23}