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