mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
24 lines
496 B
Nix
24 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";
|
|
};
|
|
};
|
|
}
|