docs: improve some parts

This commit is contained in:
FUFSoB committed 2026-09-25 23:23:54 +05:00
1 parent 878983147c
commit e4458dcae8
34 files changed
+932 -123

No files matched your search

@@ -7,6 +7,7 @@
let
inherit (lib)
literalMD
mkEnableOption
mkOption
types
@@ -21,18 +22,21 @@ in
toolsPackage = mkOption {
type = types.package;
default = awgPackages.tools;
defaultText = literalMD "proxy-suite's patched `amneziawg-tools` (`pkgs/amneziawg.nix`)";
description = "AWG 3.1 package with `awg` and `awg-quick`.";
};
userspacePackage = mkOption {
type = types.package;
default = awgPackages.userspace;
defaultText = literalMD "proxy-suite's patched `amneziawg-go` (`pkgs/amneziawg.nix`)";
description = "AWG 3.1 userspace implementation, used when the kernel module is unavailable.";
};
wireproxyPackage = mkOption {
type = types.package;
default = awgPackages.wireproxy;
defaultText = literalMD "proxy-suite's `wireproxy-awg` (`pkgs/wireproxy-awg.nix`)";
description = "wireproxy build with AWG 3.1, used by profiles with `asOutbound = \"userspace\"`.";
};
@@ -43,6 +47,7 @@ in
kernelPackages = config.services.proxy-suite.host.kernelPackages;
in
if kernelPackages == null then null else awgPackages.kernelModule kernelPackages;
defaultText = literalMD "`amneziawg` from `boot.kernelPackages` on NixOS, `null` elsewhere";
description = "AWG 3.1 kernel module package. `null`: userspace only.";
};
@@ -170,6 +170,7 @@ let
interfaceName = mkOption {
type = types.strMatching "^[A-Za-z0-9_.-]{1,15}$";
default = "awg-${name}";
defaultText = lib.literalExpression ''"awg-<name>"'';
description = "Interface name, at most 15 characters.";
};
autostart = mkOption {