nix flake refactor: avoid ``with lib;`` & use ``lib.optional*``
authorโทสฺตัล <redacted>
Thu, 23 Jan 2025 17:10:53 +0000 (00:10 +0700)
committerโทสฺตัล <redacted>
Sat, 1 Feb 2025 12:09:51 +0000 (19:09 +0700)
commit0a64bfb3c770250f08cf57365ef9981a883cb0ed
tree8774a12fca2fc4f0adea925ee6f23875f9df382f
parent8ca227e21a43ad28d978aadff2da75f1bbd90e98
nix flake refactor: avoid ``with lib;`` & use ``lib.optional*``

Upstream Nixpkgs has been pushing the style of removing ``with lib;``
with the reasoning of clarity around where variables in scope come that
hurt readability & static analysis[*].

While on the topic of ``lib``, introduce ``lib.optional`` &
``lib.optionalString`` in a few more places to tidy up the code while
using common library patterns.

.. [*] https://nix.dev/guides/best-practices#with-scopes

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