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