Files
Martin Weinelt 5e43dafc96 docs: update Flakes example
and add a small example how to deploy with nixos-rebuild.
2026-03-11 01:50:13 +01:00

19 lines
406 B
ReStructuredText

Flakes
======
To use NixOS mailserver `Nix flakes`_, the following minimal ``flake.nix`` can
serve as an example to get started:
.. _Nix flakes: https://wiki.nixos.org/wiki/Flakes
.. literalinclude:: ./flakes.nix
:language: nix
Lock the inputs and deploy the system closure:
.. code-block:: console
nix flake lock
nixos-rebuild --target-host root@mail.example.com --flake .#hostname switch