Networking: Difference between revisions
imported>Fadenb m →Prefix delegation with fixed DUID: syntaxhighlight |
imported>Averelld mNo edit summary |
||
| Line 35: | Line 35: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Source: [https://gist.github.com/gleber/9429ea43e6beb114250c3529b5c9d522 gleber gist for online.net IPv6 config in NixOS] | Source: [https://gist.github.com/gleber/9429ea43e6beb114250c3529b5c9d522 gleber gist for online.net IPv6 config in NixOS] | ||
Note: Recent versions of dhcpcd move the duid file to /var/db/dcpcd/duid. For that to work, you have to replace the above environment.etc line with something like: | |||
<syntaxhighlight lang="nix"> | |||
systemd.services.dhcpcd.preStart = '' | |||
cp ${pkgs.writeText "duid" "<ID>"} /var/db/dhcpcd/duid | |||
''; | |||
</syntaxhighlight> | |||