about summary refs log tree commit diff
path: root/nixpkgs/nixos/modules/programs/xastir.nix
blob: 6d5fc59aac506be3743d05f68ea87cffb6937c7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ 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";
    };
  };
}