.. highlight:: sh NixOS ===== Contents -------- .. toctree:: :maxdepth: 1 :glob: * Support ------- Reach out to the community using the :ref:`mailing_lists` or IRC at `#zfsonlinux `__ on `Libera Chat `__. If you have a bug report or feature request related to this HOWTO, please `file a new issue and mention @ne9z `__. Installation ------------ Note: this is for installing ZFS on an existing NixOS installation. To use ZFS as root file system, see below. Live image ships with ZFS support by default. #. Import separate configration file for ZFS options:: vim /etc/nixos/configuration.nix ##add './zfs.nix' to 'imports' # imports = [ ./zfs.nix ]; #. Configure ZFS options:: tee -a /etc/nixos/zfs.nix <`__. .. toctree:: :maxdepth: 1 :glob: Root on ZFS/* Contribute ---------- #. Fork and clone `this repo `__. #. Launch an ephemeral nix-shell with the following packages:: nix-shell -p python39 python39Packages.pip gnumake \ python39Packages.setuptools #. Create python virtual environment and install packages:: cd openzfs-docs python -m venv .venv source .venv/bin/activate pip install -r docs/requirements.txt #. Make your changes. #. Test:: make html sensible-browser _build/html/index.html #. ``git commit --signoff`` to a branch, ``git push``, and create a pull request. Mention @ne9z.