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