Prepare for adding LattePanda IOTA based cluster hosts.
This required the option to configure the available CPU as nomad assumes that we should only allocate based on the base CPU frequency but the N150 reports 800Mhz base but has a boost frequency more than 4x higher at 3.6GHz which would leave the CPU under utilised, instead we allocate at 1.8GHz (x4 cores).
This commit is contained in:
@@ -1,19 +1,42 @@
|
||||
Follow steps at https://nixos.org/manual/nixos/stable/#sec-installation-manual-summary
|
||||
Determine the correct device to install to
|
||||
|
||||
Note: run `lsblk` to determine correct device to install to.
|
||||
|
||||
Set the hostname when editing `/mnt/etc/nixos/configuration.nix` before the installation:
|
||||
`networking.hostName = "jaglan-beta-mNN";`
|
||||
|
||||
Once `nixos-install` is complete and the root password is set and saved edit the `(/mnt)/etc/nixos/configuration.nix` again to enable ssh and run `nixos-rebuild switch`
|
||||
|
||||
```
|
||||
services.openssh.enable = true;
|
||||
services.openssh.settings.PermitRootLogin = "yes";
|
||||
```sh
|
||||
lsblk
|
||||
```
|
||||
|
||||
Upgrade the OS
|
||||
`nix-channel --list`
|
||||
`nix-channel --add https://channels.nixos.org/nixos-25.05 nixos`
|
||||
`nix-channel --list`
|
||||
`nixos-rebuild switch --upgrade`
|
||||
Steps based on https://nixos.org/manual/nixos/stable/#sec-installation-manual-summary for UEFI
|
||||
|
||||
```sh
|
||||
parted /dev/mmcblk0 -- mklabel gpt
|
||||
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
|
||||
mount /dev/disk/by-label/nixos /mnt
|
||||
mkdir -p /mnt/boot
|
||||
mount -o umask=077 /dev/disk/by-label/boot /mnt/boot
|
||||
nixos-generate-config --root /mnt
|
||||
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
|
||||
# Enable ssh access
|
||||
# services.openssh.enable = true;
|
||||
# services.openssh.settings.PermitRootLogin = "yes";
|
||||
reboot
|
||||
```
|
||||
|
||||
If starting from older nixos, upgrade the OS
|
||||
|
||||
```sh
|
||||
nix-channel --list
|
||||
nix-channel --add https://channels.nixos.org/nixos-25.05 nixos
|
||||
nix-channel --list
|
||||
nixos-rebuild switch --upgrade
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user