nixos/xastir: init
This commit is contained in:
committed by
Emery Hemingway
parent
cdd6bf809b
commit
b6d94e3962
23
nixos/modules/programs/xastir.nix
Normal file
23
nixos/modules/programs/xastir.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user