diff options
author | Patrick Spek <p.spek@tyil.nl> | 2023-04-24 15:48:29 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2023-04-24 15:48:29 +0200 |
commit | 0609572b1e4edcbaecbabfb983ac7f1340ec24e8 (patch) | |
tree | 3241f9149a541565679749375dd744ed70e94a58 /data.d/etc-nixos/README.md | |
parent | 2d5585725351760d4e903e2e8ae59e3c0fa3820a (diff) |
First attempt for tinc
Diffstat (limited to 'data.d/etc-nixos/README.md')
-rw-r--r-- | data.d/etc-nixos/README.md | 13 |
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" ``` |