summaryrefslogtreecommitdiff
path: root/data.d/etc-nixos/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'data.d/etc-nixos/README.md')
-rw-r--r--data.d/etc-nixos/README.md13
1 files changed, 11 insertions, 2 deletions
diff --git a/data.d/etc-nixos/README.md b/data.d/etc-nixos/README.md
index b88c989..798fe0c 100644
--- a/data.d/etc-nixos/README.md
+++ b/data.d/etc-nixos/README.md
@@ -87,6 +87,8 @@ mount -t zfs "$zfs_pool/homefs/tyil" /mnt/home/tyil
# Install NixOS
+## Configure
+
```sh
nixos-generate-config --root /mnt
```
@@ -96,15 +98,22 @@ Apply configs in `/mnt/etc/nixos`
```nix
{
boot.supportedFilesystems = [ "zfs" ];
- boot.zfs.forceImportRoot = false;
boot.zfs.devNodes = ...
- networking.hostName = ...
+ boot.zfs.forceImportRoot = false;
networking.hostId = $(head -c4 /dev/urandom | od -A none -t x4)
+ networking.hostName = ...
}
```
+## Install
+
```sh
cd /mnt && nixos-install
+```
+
+## Reboot
+
+```sh
umount -lR /mnt
zpool export "$zfs_pool"
```