nixpkgs/nixos/modules/programs/xastir.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
496 B
Nix
Raw Normal View History

2022-12-25 23:44:40 +00:00
{ 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");
2022-12-25 23:44:40 +00: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";
};
};
}