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