nixos/xastir: init

This commit is contained in:
Matt Melling
2022-12-25 23:44:40 +00:00
committed by Emery Hemingway
parent cdd6bf809b
commit b6d94e3962
4 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.programs.xastir;
in {
meta.maintainers = with maintainers; [ melling ];
options.programs.xastir = {
enable = mkEnableOption (mdDoc "Enable 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";
};
};
}