Refine install instructions
This commit is contained in:
@@ -8,12 +8,14 @@ Steps based on https://nixos.org/manual/nixos/stable/#sec-installation-manual-su
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
parted /dev/mmcblk0 -- mklabel gpt
|
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 root ext4 512MB -8GB
|
||||||
parted /dev/mmcblk0 -- mkpart swap linux-swap -8GB 100%
|
parted /dev/mmcblk0 -- mkpart swap linux-swap -8GB 100%
|
||||||
parted /dev/mmcblk0 -- mkpart ESP fat32 1MB 512MB
|
parted /dev/mmcblk0 -- mkpart ESP fat32 1MB 512MB
|
||||||
parted /dev/mmcblk0 -- set 3 esp on
|
parted /dev/mmcblk0 -- set 3 esp on
|
||||||
|
|
||||||
mkfs.ext4 -L nixos /dev/mmcblk0p1
|
mkfs.ext4 -L nixos /dev/mmcblk0p1
|
||||||
|
|
||||||
mkswap -L swap /dev/mmcblk0p2
|
mkswap -L swap /dev/mmcblk0p2
|
||||||
swapon /dev/mmcblk0p2
|
swapon /dev/mmcblk0p2
|
||||||
mkfs.fat -F 32 -n boot /dev/mmcblk0p3
|
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";
|
# Set hostname networking.hostName = "jaglan-beta-mNN";
|
||||||
nixos-install
|
nixos-install
|
||||||
# Set the root password
|
# Set the root password
|
||||||
nano /mnt/etc/nixos/configuration.nix
|
reboot
|
||||||
|
nano /etc/nixos/configuration.nix
|
||||||
# Enable ssh access
|
# Enable ssh access
|
||||||
# services.openssh.enable = true;
|
# services.openssh.enable = true;
|
||||||
# services.openssh.settings.PermitRootLogin = "yes";
|
# services.openssh.settings.PermitRootLogin = "yes";
|
||||||
reboot
|
nixos-rebuild switch
|
||||||
```
|
```
|
||||||
|
|
||||||
If starting from older nixos, upgrade the OS
|
If starting from older nixos, upgrade the OS
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
Avoid applying change to multiple hosts at once as this could take done the cluster, instead apply to each on one at a time
|
Avoid applying change to multiple hosts at once as this could take done the cluster, instead apply to each on one at a time
|
||||||
|
terraform apply -target='null_resource.deploy_nixos["jaglan-beta-m02"]'
|
||||||
|
terraform apply -target='null_resource.deploy_nixos["jaglan-beta-m03"]'
|
||||||
|
terraform apply -target='null_resource.deploy_nixos["jaglan-beta-m04"]'
|
||||||
|
terraform apply -target='null_resource.deploy_nixos["jaglan-beta-m05"]'
|
||||||
terraform apply -target='null_resource.deploy_nixos["jaglan-beta-m20"]'
|
terraform apply -target='null_resource.deploy_nixos["jaglan-beta-m20"]'
|
||||||
terraform apply -target='null_resource.deploy_nixos["jaglan-beta-m21"]'
|
terraform apply -target='null_resource.deploy_nixos["jaglan-beta-m21"]'
|
||||||
terraform apply -target='null_resource.deploy_nixos["jaglan-beta-m22"]'
|
terraform apply -target='null_resource.deploy_nixos["jaglan-beta-m22"]'
|
||||||
|
|||||||
Reference in New Issue
Block a user