nixpkgs/nixos/modules/programs/xastir.nix

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

22 lines
489 B
Nix
Raw Normal View History

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