We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b19054 commit cf34678Copy full SHA for cf34678
flake.nix
@@ -29,9 +29,10 @@
29
};
30
config = mkIf cfg.enable {
31
networking.extraHosts =
32
- builtins.readFile (
33
- "${self}/" + (if alternatesList != [] then alternatesPath else "") + "hosts"
34
- );
+ let
+ orig = builtins.readFile ("${self}/" + (if alternatesList != [] then alternatesPath else "") + "hosts");
+ ipv6 = builtins.replaceStrings [ "0.0.0.0" ] [ "::" ] orig;
35
+ in orig + "\n" + ipv6;
36
37
38
0 commit comments