1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-18 15:39:46 +03:00
nixpkgs/nixos/modules/programs/xastir.nix

22 lines
489 B
Nix
Raw Normal View History

2022-12-25 23:44:40 +00:00
{ config, lib, pkgs, ... }:
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";
};
};
}