about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--docs/install.org26
1 files changed, 20 insertions, 6 deletions
diff --git a/docs/install.org b/docs/install.org
index 5731599..bad13a4 100644
--- a/docs/install.org
+++ b/docs/install.org
@@ -2,6 +2,11 @@
 #+AUTHOR: Franck Cuny
 #+EMAIL: franck@fcuny.net
 
+* Prepare the USB stick
+Download the most recent image from https://nixos.org/download.html then put it on a stick:
+#+begin_src sh
+sudo cp ~/downloads/nixos-minimal-21.11.336020.2128d0aa28e-x86_64-linux.iso /dev/sda
+#+end_src
 * Partitioning
 ** For the workstation (desktop/laptop)
 All hosts have the same partitioning for the boot drive:
@@ -52,7 +57,6 @@ mount -t btrfs /dev/mapper/system /mnt
 btrfs subvolume create /mnt/nixos
 btrfs subvolume create /mnt/home
 btrfs subvolume create /mnt/snapshots
-btrfs subvolume create /mnt/home/fcuny/media
 
 umount /mnt
 #+end_src
@@ -62,10 +66,8 @@ Now we can re-mount the partitions with the proper options:
 mount -o subvol=nixos,compress=zstd,noatime,autodefrag /dev/mapper/system /mnt
 
 mkdir /mnt/{home,boot,.snapshots}
-mkdir -p /mnt/home/fcuny/media
 
 mount -o subvol=home,compress=zstd,noatime,autodefrag /dev/mapper/system /mnt/home
-mount -o subvol=media,compress=zstd,noatime,autodefrag /dev/mapper/system /mnt/home/fcuny/media
 mount -o subvol=snapshots,compress=zstd,noatime /dev/mapper/system /mnt/.snapshots
 mount /dev/nvme0n1p3 /mnt/boot
 #+end_src
@@ -83,9 +85,13 @@ nix-shell -p git nixFlakes
 
 #+begin_src sh
 nixos-generate-config --root /mnt
-git clone https://github.com/SakulK/nixos-config.git /mnt/root/nixos
-cp /mn/etc/nixos/hardware-configuration.nix /mnt/root/nixos/hosts/...
-nixos-install --root /mnt --flake /mnt/root/nixos#???
+mkdir /mnt/root
+git clone https://git.fcuny.net/fcuny/world.git /mnt/root/world
+mkdir /mnt/root/world/hosts/<host name>
+cp /mn/etc/nixos/hardware-configuration.nix /mnt/root/hosts/hosts/<host name>/
+cp /mnt/root/world/hosts/aptos/default.nix /mnt/root/world/hosts/<host name>/
+vim /mnt/root/world/hosts/<host name>/default.nix
+nixos-install --root /mnt --flake /mnt/root/world#<host name>
 #+end_src
 
 
@@ -96,3 +102,11 @@ btrfs subvolume snapshot /mnt /mnt/.snapshots/$CUSTOMIZE_TIMESTAMP
 #+end_src
 
 And a =reboot= should be enough.
+* home-manager initial install
+After a reboot, as root:
+#+begin_src sh
+nix-channel --add https://github.com/nix-community/home-manager/archive/release-21.11.tar.gz home-manager
+nix-channel --update
+nix-shell '<home-manager>' -A install
+home-manager build --flake .#fcuny@<host name>
+#+end_src