ZFS: Difference between revisions

imported>Sjau
No edit summary
imported>Sjau
Undo revision 1080 by Sjau (talk)
Line 259: Line 259:
* In order to use DHCP in the initrd, network manager must not be enabled and <code>networking.useDHCP = true;</code> must be set.
* In order to use DHCP in the initrd, network manager must not be enabled and <code>networking.useDHCP = true;</code> must be set.
* If your network card isn't started, you'll need to add the according kernel module to the initrd as well, e.g. <code>boot.initrd.kernelModules = [ "r8169" ];</code>
* If your network card isn't started, you'll need to add the according kernel module to the initrd as well, e.g. <code>boot.initrd.kernelModules = [ "r8169" ];</code>
* Also the initrd must contain at least one authroized key. A simple way to use root's authroized_keys file is the following piece in the ssh part: <code>authorizedKeys = [ ''   ${builtins.readFile /root/.ssh/authorized_keys}   '' ];</code>
* Also the initrd must contain at least one authroized key. A simple way to use root's authroized_keys file is the following piece in the ssh part:
<syntaxHighlight lang=nix>
        authorizedKeys = [
          ''
            ${builtins.readFile /root/.ssh/authorized_keys}
          ''
        ];
</syntaxHighlight>


== Need more info? ==
== Need more info? ==