diff options
author | Matt Melling <mattmelling@fastmail.com> | 2022-12-25 23:44:40 +0000 |
---|---|---|
committer | Emery Hemingway <ehmry@posteo.net> | 2022-12-26 10:33:49 -0600 |
commit | b6d94e39628736ad6dd7668d39789d84c5e784d7 (patch) | |
tree | 99a5d76756d7736116fdaff0661280e5d535a914 /nixos/modules/programs | |
parent | cdd6bf809b32a6dc9ab681b417279341d3087c48 (diff) |
nixos/xastir: init
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r-- | nixos/modules/programs/xastir.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/nixos/modules/programs/xastir.nix b/nixos/modules/programs/xastir.nix new file mode 100644 index 0000000000000..0977668d83707 --- /dev/null +++ b/nixos/modules/programs/xastir.nix @@ -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"; + }; + }; +} |