nixpkgs/nixos/modules/programs/xastir.nix

28 lines
497 B
Nix
Raw Permalink Normal View History

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