Remote disk unlocking: Difference between revisions
| Line 80: | Line 80: | ||
=== Wireguard in initrd === | === Wireguard in initrd === | ||
Considering you've already enabled the ssh daemon, configured networking (for example with DHCP or static IP) and configured | Considering you've already enabled the ssh daemon, configured networking (for example with DHCP or static IP) and configured an unlocking command, following additional snippet will enable [[WireGuard]] connectivity to a remote peer while in initrd.<syntaxhighlight lang="nix"> | ||
boot.initrd.availableKernelModules = [ "r8169" "wireguard" ]; | boot.initrd.availableKernelModules = [ "r8169" "wireguard" ]; | ||
boot.initrd.systemd = { | boot.initrd.systemd = { | ||