From 0d902a00aceae06c12292a29c73463ec0dfa88e0 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 17 Nov 2020 15:27:50 -0500 Subject: [PATCH] Update linode instructions --- hosts/linode.nix | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/hosts/linode.nix b/hosts/linode.nix index e9d694d7..b995c282 100644 --- a/hosts/linode.nix +++ b/hosts/linode.nix @@ -9,21 +9,35 @@ # - /dev/sdc -> NixOS # # 3. Once booted into Finnix (step 2) pipe this script to sh: -# iso= +# iso=https://channels.nixos.org/nixos-20.09/latest-nixos-minimal-x86_64-linux.iso # update-ca-certificates # curl $url | dd of=/dev/sda # -# 4. Install these dotfiles with -# git clone https://github.com/hlissner/dotfiles ~/.config/dotfiles -# nixos-install --root "$(PREFIX)" --flake ~/.config/dotfiles#linode +# 4. Create two configuration profiles: +# - Installer +# - Kernel: Direct Disk +# - /dev/sda -> NixOS +# - /dev/sdb -> Swap +# - /dev/sdc -> Installer +# - Helpers: distro and auto network helpers = off +# - Boot +# - Kernel: GRUB 2 +# - /dev/sda -> NixOS +# - /dev/sdb -> Swap +# - Helpers: distro and auto network helpers = off # -# 4. Create a configuration profile: -# - Kernel: GRUB 2 -# - /dev/sda -> NixOS -# - /dev/sdb -> Swap -# - Helpers: distro and auto network helpers = off +# 5. Boot into installer profile. # -# 5. Reboot into profile. +# 6. Install dotfiles: +# mount /dev/sda /mnt +# swapon /dev/sdb +# nix-env -iA nixos.git +# nix-env -iA nixos.nixFlakes +# mkdir -p /mnt/home/hlissner +# git clone https://github.com/hlissner/dotfiles /mnt/home/hlissner/.config/dotfiles +# nixos-install --root "$(PREFIX)" --flake /mnt/home/hlissner/.config/dotfiles#linode +# +# 7. Reboot into "Boot" profile. { config, lib, pkgs, ... }: