From d94950e80d049c607b1b803fa1c0a7c42bde289b Mon Sep 17 00:00:00 2001 From: Maurice Zhou Date: Wed, 19 Apr 2023 15:29:58 +0200 Subject: [PATCH] Update NixOS index Co-authored-by: @SuperSandro2000 Closes #424 Signed-off-by: Maurice Zhou --- docs/Getting Started/NixOS/index.rst | 53 +++++++++++++------ .../RHEL-based distro/Root on ZFS.rst | 2 +- 2 files changed, 38 insertions(+), 17 deletions(-) diff --git a/docs/Getting Started/NixOS/index.rst b/docs/Getting Started/NixOS/index.rst index 14341a2..71c75d9 100644 --- a/docs/Getting Started/NixOS/index.rst +++ b/docs/Getting Started/NixOS/index.rst @@ -28,33 +28,30 @@ 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. +NixOS live image ships with ZFS support by default. Note that you need to apply these settings even if you don't need to boot from ZFS. The kernel module 'zfs.ko' will not be available to modprobe until you make these changes and reboot. -#. Import separate configration file for ZFS options:: +#. Edit ``/etc/nixos/configuration.nix`` and add the following + options:: - vim /etc/nixos/configuration.nix - ##add './zfs.nix' to 'imports' - # imports = [ ./zfs.nix ]; + boot.supportedFilesystems = [ "zfs" ]; + boot.zfs.forceImportRoot = false; + networking.hostId = "yourHostId"; -#. Configure ZFS options:: + Where hostID can be generated with:: - tee -a /etc/nixos/zfs.nix <