Commit db1d052
committed
nix flake: use
At present, if a user uses ``networking.stevenBlockHosts.enable = true``
in tandem with ``networking.extraHosts``, the ``extraHosts`` will
override this Flake which is an unexpected behavior. By using
``lib.mkAfter``, a user can now prepend extra hosts. Meaning:
.. code:: nix
{
networking = {
stevenBlockHosts.enable = true;
extraHosts = ''
127.0.0.1 myproject.localhost
'';
};
}
will now output
.. code::
127.0.0.1 localhost
::1 localhost
127.0.0.1 myproject.localhost
# Title: StevenBlack/hosts with the fakenews extension
#
# …
instead of removing StevenBlack/hosts.
Format: text/x-rstlib.mkAfter to allow extraHosts1 parent d8ff947 commit db1d052
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
0 commit comments