From cf283e49face488d0e8454c4a2247148f6f7eba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= Date: Thu, 25 Aug 2022 22:20:42 +0200 Subject: [PATCH] docs: update README --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 377d719..f9d60bb 100644 --- a/README.md +++ b/README.md @@ -10,15 +10,21 @@ On a new machine run: scripts/setup-partitions ``` -Then move the resulting `/etc/nixos/hardware-configuration.nix` to `./hardware/.nix`. +Then move the resulting `/mnt/etc/nixos/hardware-configuration.nix` to `./hardware/.nix`. Update the configuration according to the script output, if necessary. Btrfs mount options likely need to be added, for example. +Copy the configuration from `/etc/nixos` to `/mnt/etc/nixos`. Reference this hardware config in a `nixosConfigurations.` section in `flake.nix`. To install run the following command where `` matches `outputs.nixosConfigurations.` in `flake.nix`: ```sh -nixos-install --flake '/etc/nixos#' +nixos-install --flake '/mnt/etc/nixos#' +``` + +After the installation finished, set a password for the user: +``` +passwd ``` ## Updating @@ -48,4 +54,3 @@ Rebuild the system for a remote machine: ```sh sudo nixos-rebuild switch --flake '/etc/nixos#' --target-host user@hostname --use-remote-sudo ``` -