nix flake: use ``lib.mkAfter`` put the host list at the end
author·𐑑𐑴𐑕𐑑𐑩𐑀 <redacted>
Thu, 26 Feb 2026 04:44:50 +0000 (11:44 +0700)
committer·𐑑𐑴𐑕𐑑𐑩𐑀 <redacted>
Thu, 26 Feb 2026 04:44:50 +0000 (11:44 +0700)
commit1960e05c52b04e43a96d7bbdd195be8d04931983
tree3cba39b629e2e1cf65e70ec3ba571f4d980fcf16
parent588550252c26c8b9b4286f0d655d349030610ddb
nix flake: use ``lib.mkAfter`` put the host list at the end

At present, if a user uses ``networking.stevenBlockHosts.enable = true``
in tandem with ``networking.extraHosts``, the ``extraHosts`` will put be
put after which makes it very difficult to see the custom adds with even
the ``$PAGER`` operating a bit slow due to file size. I would propose
putting this project’s hosts at the end of the hosts file. 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
  #
  # β€¦

Format: text/x-rst
flake.nix
git clone https://git.99rst.org/PROJECT