# services.proxy-suite.amneziaWg Part of the [proxy-suite options reference](./index.md). ## Options - amneziaWg - [enable](#services-proxy-suite-amneziawg-enable) - [kernelModulePackage](#services-proxy-suite-amneziawg-kernelmodulepackage) - [profiles](#services-proxy-suite-amneziawg-profiles) - `` - [allowConfigHooks](#services-proxy-suite-amneziawg-profiles-name-allowconfighooks) - [asOutbound](#services-proxy-suite-amneziawg-profiles-name-asoutbound) - [autostart](#services-proxy-suite-amneziawg-profiles-name-autostart) - [configFile](#services-proxy-suite-amneziawg-profiles-name-configfile) - [interfaceName](#services-proxy-suite-amneziawg-profiles-name-interfacename) - [settings](#services-proxy-suite-amneziawg-profiles-name-settings) - [addresses](#services-proxy-suite-amneziawg-profiles-name-settings-addresses) - [dns](#services-proxy-suite-amneziawg-profiles-name-settings-dns) - [listenPort](#services-proxy-suite-amneziawg-profiles-name-settings-listenport) - [mtu](#services-proxy-suite-amneziawg-profiles-name-settings-mtu) - [obfuscation](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation) - [contentPaddingAddition](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-contentpaddingaddition) - [disableCookies](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-disablecookies) - [h1](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-h1) - [h2](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-h2) - [h3](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-h3) - [h4](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-h4) - [headerProtectionKey](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-headerprotectionkey) - [headerProtectionKeyFile](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-headerprotectionkeyfile) - [i1](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-i1) - [i2](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-i2) - [i3](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-i3) - [i4](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-i4) - [i5](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-i5) - [jc](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-jc) - [jmax](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-jmax) - [jmin](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-jmin) - [keepaliveTimeout](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-keepalivetimeout) - [maxHandshakeAttempts](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-maxhandshakeattempts) - [randomTrailers](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-randomtrailers) - [rejectAfterTime](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-rejectaftertime) - [rekeyAfterTime](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-rekeyaftertime) - [rekeyTimeout](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-rekeytimeout) - [s1](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-s1) - [s2](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-s2) - [s3](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-s3) - [s4](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-s4) - [obfuscationFile](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscationfile) - [peers](#services-proxy-suite-amneziawg-profiles-name-settings-peers) - item - [advancedSecurity](#services-proxy-suite-amneziawg-profiles-name-settings-peers-advancedsecurity) - [allowedIPs](#services-proxy-suite-amneziawg-profiles-name-settings-peers-allowedips) - [endpoint](#services-proxy-suite-amneziawg-profiles-name-settings-peers-endpoint) - [persistentKeepalive](#services-proxy-suite-amneziawg-profiles-name-settings-peers-persistentkeepalive) - [presharedKey](#services-proxy-suite-amneziawg-profiles-name-settings-peers-presharedkey) - [presharedKeyFile](#services-proxy-suite-amneziawg-profiles-name-settings-peers-presharedkeyfile) - [publicKey](#services-proxy-suite-amneziawg-profiles-name-settings-peers-publickey) - [privateKey](#services-proxy-suite-amneziawg-profiles-name-settings-privatekey) - [privateKeyFile](#services-proxy-suite-amneziawg-profiles-name-settings-privatekeyfile) - [table](#services-proxy-suite-amneziawg-profiles-name-settings-table) - [vpn](#services-proxy-suite-amneziawg-profiles-name-vpn) - [vpnContainer](#services-proxy-suite-amneziawg-profiles-name-vpncontainer) - [vpnFile](#services-proxy-suite-amneziawg-profiles-name-vpnfile) - [toolsPackage](#services-proxy-suite-amneziawg-toolspackage) - [userspacePackage](#services-proxy-suite-amneziawg-userspacepackage) - [wireproxyPackage](#services-proxy-suite-amneziawg-wireproxypackage) ## services\.proxy-suite\.amneziaWg\.enable Whether to enable native AmneziaWG client profiles\. *Type:* boolean *Default:* ```nix false ``` *Example:* ```nix true ``` ## services\.proxy-suite\.amneziaWg\.kernelModulePackage AWG 3\.1 kernel module package\. Set null to use userspace-only fallback\. *Type:* null or package *Default:* ```nix ``` ## services\.proxy-suite\.amneziaWg\.profiles Named AmneziaWG client profiles\. Only one global profile can be active\. A profile moves to a new source port, keeping its routes, when a handshake goes unanswered: every 5 seconds while it starts (it gives up after 20), and when proxy-suite-awg-NAME-watchdog sees a rekey not getting through\. settings\.listenPort pins the port and turns that off\. *Type:* attribute set of (submodule) *Default:* ```nix { } ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.allowConfigHooks Allow trusted imported configs to execute wg-quick hooks or use SaveConfig\. *Type:* boolean *Default:* ```nix false ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.asOutbound Make the profile a proxy outbound tagged with its name instead of a global profile\. It then always runs, leaves the host’s routes and resolver alone, and is not listed by ` proxy-ctl awg `\. Requires proxy\.enable\. - “singBox”: a WireGuard endpoint in its own sing-box process, reached as a loopback SOCKS hop\. sing-box speaks plain WireGuard: AmneziaWG obfuscation is dropped with a warning\. - “userspace”: the same hop served by wireproxy on AmneziaWG’s userspace implementation, so obfuscation works\. It needs no interface or root: the only AmneziaWG mode on home-manager and nix-on-droid\. A declared or profile ListenPort is used as is\. An Endpoint hostname resolves through the system resolver: give an address where that resolver cannot reach the name\. - “interface”: the AmneziaWG interface comes up without routes (Table = off), and the outbound binds to it, so obfuscation works\. With the sing-box backend its DNS goes through the interface too (proxy\.dns\.remote); XRay resolves as usual\. Either way the tunnel itself reaches the peer over the uplink, past TUN and TProxy\. *Type:* null or one of “singBox”, “userspace”, “interface” *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.autostart Whether to start this profile at boot\. At most one profile may autostart\. *Type:* boolean *Default:* ```nix false ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.configFile Runtime path to an AmneziaWG \.conf file\. *Type:* null or string *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.interfaceName Linux interface name\. It must fit Linux’s 15-character limit\. *Type:* string matching the pattern ^\[A-Za-z0-9_\.-]{1,15}$ *Default:* ```nix "awg-‹name›" ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings Typed declarative AmneziaWG client configuration\. *Type:* null or (submodule) *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.addresses IP prefixes assigned to the AWG interface\. *Type:* list of string *Default:* ```nix [ ] ``` *Example:* ```nix [ "10.8.0.2/32" ] ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.dns DNS servers installed while this profile is active\. *Type:* list of string *Default:* ```nix [ ] ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.listenPort Optional local UDP listen port\. *Type:* null or 16 bit unsigned integer; between 0 and 65535 (both inclusive) *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.mtu Optional interface MTU\. *Type:* null or (unsigned integer, meaning >=0) *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation AmneziaWG 1\.x through 3\.x obfuscation parameters\. *Type:* submodule *Default:* ```nix { } ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.contentPaddingAddition AWG 3 content-padding addition or range\. *Type:* null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$ *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.disableCookies AWG 3 cookie suppression (DisableCookies)\. *Type:* null or boolean *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.h1 Handshake-init header or range (H1)\. *Type:* null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$ *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.h2 Handshake-response header or range (H2)\. *Type:* null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$ *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.h3 Cookie-reply header or range (H3)\. *Type:* null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$ *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.h4 Transport-message header or range (H4)\. *Type:* null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$ *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.headerProtectionKey Inline AWG 3 header-protection key\. Prefer headerProtectionKeyFile\. *Type:* null or string *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.headerProtectionKeyFile Runtime path containing the AWG 3 header-protection key\. *Type:* null or string *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.i1 First custom signature packet (I1)\. *Type:* null or string *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.i2 Second custom signature packet (I2)\. *Type:* null or string *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.i3 Third custom signature packet (I3)\. *Type:* null or string *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.i4 Fourth custom signature packet (I4)\. *Type:* null or string *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.i5 Fifth custom signature packet (I5)\. *Type:* null or string *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.jc Junk packet count (Jc)\. *Type:* null or (unsigned integer, meaning >=0) *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.jmax Maximum junk packet size (Jmax)\. *Type:* null or (unsigned integer, meaning >=0) *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.jmin Minimum junk packet size (Jmin)\. *Type:* null or (unsigned integer, meaning >=0) *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.keepaliveTimeout AWG 3 keepalive timeout or range\. *Type:* null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$ *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.maxHandshakeAttempts AWG 3 maximum handshake attempts or range\. *Type:* null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$ *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.randomTrailers AWG 3 random transport trailers (RandomTrailers)\. *Type:* null or boolean *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.rejectAfterTime AWG 3 reject-after interval or range\. *Type:* null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$ *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.rekeyAfterTime AWG 3 rekey interval or range\. *Type:* null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$ *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.rekeyTimeout AWG 3 rekey timeout or range\. *Type:* null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$ *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.s1 Handshake-init padding (S1)\. *Type:* null or (unsigned integer, meaning >=0) *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.s2 Handshake-response padding (S2)\. *Type:* null or (unsigned integer, meaning >=0) *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.s3 Cookie-reply padding (S3)\. *Type:* null or (unsigned integer, meaning >=0) *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscation\.s4 Transport-message padding (S4)\. *Type:* null or (unsigned integer, meaning >=0) *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.obfuscationFile Runtime path to a partial JSON object using the same field names and value types as obfuscation, excluding headerProtectionKeyFile\. Values are combined with public obfuscation settings at service startup without putting the file contents in the Nix store\. Omitted or null fields are unset; duplicate JSON keys and fields set in both sources are rejected\. A file-provided headerProtectionKey also conflicts with obfuscation\.headerProtectionKeyFile\. Private and preshared keys use their existing file options\. Restart the profile after secret rotation\. *Type:* null or string *Default:* ```nix null ``` *Example:* ```nix "/run/secrets/awg-obfuscation.json" ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.peers AmneziaWG peers\. *Type:* list of (submodule) *Default:* ```nix [ ] ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.peers\.\*\.advancedSecurity Optional AWG peer AdvancedSecurity setting\. *Type:* null or boolean *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.peers\.\*\.allowedIPs IP prefixes routed to and accepted from this peer\. *Type:* list of string *Default:* ```nix [ ] ``` *Example:* ```nix [ "0.0.0.0/0" "::/0" ] ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.peers\.\*\.endpoint Optional peer endpoint in host:port form\. *Type:* null or string *Default:* ```nix null ``` *Example:* ```nix "vpn.example.com:51820" ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.peers\.\*\.persistentKeepalive Persistent keepalive seconds, optionally expressed as an AWG 3 range\. *Type:* null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$ *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.peers\.\*\.presharedKey Inline peer preshared key\. Prefer presharedKeyFile for secrets\. *Type:* null or string *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.peers\.\*\.presharedKeyFile Runtime path containing the peer preshared key\. *Type:* null or string *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.peers\.\*\.publicKey AmneziaWG peer public key\. *Type:* string matching the pattern \[^\[:space:]]+ ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.privateKey Inline client private key\. Prefer privateKeyFile\. *Type:* null or string *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.privateKeyFile Runtime path containing the client private key\. *Type:* null or string *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.settings\.table wg-quick routing table name/number, auto, or off\. *Type:* null or string *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.vpn Inline self-contained vpn:// export\. This value is stored in the Nix store\. *Type:* null or string *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.vpnContainer AWG container/protocol identifier to select when a vpn:// bundle is ambiguous\. *Type:* null or string *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.profiles\.\\.vpnFile Runtime path containing a self-contained vpn:// export\. *Type:* null or string *Default:* ```nix null ``` ## services\.proxy-suite\.amneziaWg\.toolsPackage AWG 3\.1 package providing awg and awg-quick\. *Type:* package *Default:* ```nix ``` ## services\.proxy-suite\.amneziaWg\.userspacePackage AWG 3\.1 userspace implementation used when the kernel interface is unavailable\. *Type:* package *Default:* ```nix ``` ## services\.proxy-suite\.amneziaWg\.wireproxyPackage wireproxy build with AWG 3\.1 and FwMark, which runs profiles with asOutbound = “userspace”\. *Type:* package *Default:* ```nix ```