Remote disk unlocking: Difference between revisions

Onny (talk | contribs)
Onny (talk | contribs)
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 a unlocking command, following additional snippet will enable [[WireGuard]] connectivity to a remote peer.<syntaxhighlight lang="nix">
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 = {