mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-07-01 02:36:52 +00:00
Merge pull request #2814 from toastal/nix-mkafter
nix flake: use `lib.mkAfter` put the host list at the end
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
orig = builtins.readFile ("${self}/" + (lib.optionalString (alternatesList != []) alternatesPath) + "hosts");
|
||||
ipv6 = builtins.replaceStrings [ "0.0.0.0" ] [ "::" ] orig;
|
||||
in
|
||||
orig + (lib.optionalString cfg.enableIPv6 ("\n" + ipv6));
|
||||
lib.mkAfter (orig + (lib.optionalString cfg.enableIPv6 ("\n" + ipv6)));
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user