depot/third_party/nixpkgs/nixos/modules/programs/xastir.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

23 lines
496 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.programs.xastir;
in {
meta.maintainers = with maintainers; [ melling ];
options.programs.xastir = {
enable = mkEnableOption (mdDoc "Xastir Graphical APRS client");
};
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";
};
};
}