5e43dafc96
and add a small example how to deploy with nixos-rebuild.
19 lines
406 B
ReStructuredText
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
|