Refine install instructions

This commit is contained in:
2025-10-20 20:52:15 +11:00
parent 50cddcd033
commit 7302842add
2 changed files with 9 additions and 2 deletions

View File

@@ -8,12 +8,14 @@ Steps based on https://nixos.org/manual/nixos/stable/#sec-installation-manual-su
```sh
parted /dev/mmcblk0 -- mklabel gpt
# If there is an existing OS you will have to type yes to proceed
parted /dev/mmcblk0 -- mkpart root ext4 512MB -8GB
parted /dev/mmcblk0 -- mkpart swap linux-swap -8GB 100%
parted /dev/mmcblk0 -- mkpart ESP fat32 1MB 512MB
parted /dev/mmcblk0 -- set 3 esp on
mkfs.ext4 -L nixos /dev/mmcblk0p1
mkswap -L swap /dev/mmcblk0p2
swapon /dev/mmcblk0p2
mkfs.fat -F 32 -n boot /dev/mmcblk0p3
@@ -25,11 +27,12 @@ nano /mnt/etc/nixos/configuration.nix
# Set hostname networking.hostName = "jaglan-beta-mNN";
nixos-install
# Set the root password
nano /mnt/etc/nixos/configuration.nix
reboot
nano /etc/nixos/configuration.nix
# Enable ssh access
# services.openssh.enable = true;
# services.openssh.settings.PermitRootLogin = "yes";
reboot
nixos-rebuild switch
```
If starting from older nixos, upgrade the OS