summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatt Melling <mattmelling@fastmail.com>2022-12-25 23:44:40 +0000
committerEmery Hemingway <ehmry@posteo.net>2022-12-26 10:33:49 -0600
commitb6d94e39628736ad6dd7668d39789d84c5e784d7 (patch)
tree99a5d76756d7736116fdaff0661280e5d535a914
parentcdd6bf809b32a6dc9ab681b417279341d3087c48 (diff)
downloadnixpkgs-b6d94e39628736ad6dd7668d39789d84c5e784d7.tar
nixpkgs-b6d94e39628736ad6dd7668d39789d84c5e784d7.tar.gz
nixpkgs-b6d94e39628736ad6dd7668d39789d84c5e784d7.tar.bz2
nixpkgs-b6d94e39628736ad6dd7668d39789d84c5e784d7.tar.lz
nixpkgs-b6d94e39628736ad6dd7668d39789d84c5e784d7.tar.xz
nixpkgs-b6d94e39628736ad6dd7668d39789d84c5e784d7.tar.zst
nixpkgs-b6d94e39628736ad6dd7668d39789d84c5e784d7.zip
nixos/xastir: init
-rw-r--r--nixos/doc/manual/from_md/release-notes/rl-2305.section.xml7
-rw-r--r--nixos/doc/manual/release-notes/rl-2305.section.md2
-rw-r--r--nixos/modules/module-list.nix1
-rw-r--r--nixos/modules/programs/xastir.nix23
4 files changed, 33 insertions, 0 deletions
diff --git a/nixos/doc/manual/from_md/release-notes/rl-2305.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2305.section.xml
index dd17213544b..c05caa122b1 100644
--- a/nixos/doc/manual/from_md/release-notes/rl-2305.section.xml
+++ b/nixos/doc/manual/from_md/release-notes/rl-2305.section.xml
@@ -410,6 +410,13 @@
           value of this setting.
         </para>
       </listitem>
+      <listitem>
+        <para>
+          <link xlink:href="https://xastir.org/index.php/Main_Page">Xastir</link>
+          can now access AX.25 interfaces via the
+          <literal>libax25</literal> package.
+        </para>
+      </listitem>
     </itemizedlist>
   </section>
 </section>
diff --git a/nixos/doc/manual/release-notes/rl-2305.section.md b/nixos/doc/manual/release-notes/rl-2305.section.md
index 3e878919579..2d05d092f5b 100644
--- a/nixos/doc/manual/release-notes/rl-2305.section.md
+++ b/nixos/doc/manual/release-notes/rl-2305.section.md
@@ -110,3 +110,5 @@ In addition to numerous new and upgraded packages, this release has the followin
 - The `unifi-poller` package and corresponding NixOS module have been renamed to `unpoller` to match upstream.
 
 - The new option `services.tailscale.useRoutingFeatures` controls various settings for using Tailscale features like exit nodes and subnet routers. If you wish to use your machine as an exit node, you can set this setting to `server`, otherwise if you wish to use an exit node you can set this setting to `client`. The strict RPF warning has been removed as the RPF will be loosened automatically based on the value of this setting.
+
+- [Xastir](https://xastir.org/index.php/Main_Page) can now access AX.25 interfaces via the `libax25` package.
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix
index af7fd4f712c..7903cd23a75 100644
--- a/nixos/modules/module-list.nix
+++ b/nixos/modules/module-list.nix
@@ -244,6 +244,7 @@
   ./programs/waybar.nix
   ./programs/weylus.nix
   ./programs/wireshark.nix
+  ./programs/xastir.nix
   ./programs/wshowkeys.nix
   ./programs/xfconf.nix
   ./programs/xfs_quota.nix
diff --git a/nixos/modules/programs/xastir.nix b/nixos/modules/programs/xastir.nix
new file mode 100644
index 00000000000..0977668d837
--- /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";
+    };
+  };
+}