ZFS: Difference between revisions
imported>Sjau No edit summary |
imported>Sjau No edit summary |
||
Line 257: | Line 257: | ||
}; | }; | ||
</syntaxHighlight> | </syntaxHighlight> | ||
* In order to use DHCP in the initrd, network manager must not be enabled and | * 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. | * 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: | |||
<syntaxHighlight lang=nix> | |||
authorizedKeys = [ | |||
'' | |||
${builtins.readFile /root/.ssh/authorized_keys} | |||
'' | |||
]; | |||
</syntaxHighlight> | |||
== Need more info? == | == Need more info? == |