2021-01-29 09:21:25 +00:00
|
|
|
|
Contribute or troubleshoot
|
|
|
|
|
==========================
|
2020-07-02 19:02:47 +00:00
|
|
|
|
|
2020-07-06 20:23:03 +00:00
|
|
|
|
Run NixOS tests
|
|
|
|
|
---------------
|
2020-07-02 19:02:47 +00:00
|
|
|
|
|
|
|
|
|
You can run the testsuite via
|
|
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
2020-07-06 20:23:03 +00:00
|
|
|
|
$ nix-build tests -A extern.nixpkgs_20_03
|
|
|
|
|
$ nix-build tests -A intern.nixpkgs_unstable
|
2020-07-02 19:02:47 +00:00
|
|
|
|
...
|
|
|
|
|
|
2020-07-06 20:23:03 +00:00
|
|
|
|
Contributing to the documentation
|
|
|
|
|
---------------------------------
|
|
|
|
|
|
|
|
|
|
The documentation is written in RST, build with Sphinx and published
|
|
|
|
|
by `Read the Docs <https://readthedocs.org/>`_.
|
|
|
|
|
|
|
|
|
|
For the syntax, see `RST/Sphinx Cheatsheet
|
|
|
|
|
<https://sphinx-tutorial.readthedocs.io/cheatsheet/>`_.
|
|
|
|
|
|
|
|
|
|
The ``shell.nix`` provides all the tooling required to build the
|
|
|
|
|
documentation:
|
|
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
$ nix-shell
|
|
|
|
|
$ cd docs
|
|
|
|
|
$ make html
|
|
|
|
|
$ firefox ./_build/html/index.html
|
|
|
|
|
|
2020-07-02 19:02:47 +00:00
|
|
|
|
Nixops
|
|
|
|
|
------
|
|
|
|
|
|
|
|
|
|
You can test the setup via ``nixops``. After installation, do
|
|
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
2020-07-06 20:23:03 +00:00
|
|
|
|
$ nixops create nixops/single-server.nix nixops/vbox.nix -d mail
|
|
|
|
|
$ nixops deploy -d mail
|
|
|
|
|
$ nixops info -d mail
|
2020-07-02 19:02:47 +00:00
|
|
|
|
|
|
|
|
|
You can then test the server via e.g. \ ``telnet``. To log into it, use
|
|
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
2020-07-06 20:23:03 +00:00
|
|
|
|
$ nixops ssh -d mail mailserver
|
2020-07-02 19:02:47 +00:00
|
|
|
|
|
|
|
|
|
Imap
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
To test imap manually use
|
|
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
2020-07-06 20:23:03 +00:00
|
|
|
|
$ openssl s_client -host mail.example.com -port 143 -starttls imap
|