Compare commits

...

4 Commits

Author SHA1 Message Date
Nathan van Doorn d6d923f422 Update readme 2024-05-04 14:17:27 +02:00
Nathan van Doorn 41426c6874 Update password 2024-05-04 13:51:51 +02:00
Nathan van Doorn 1ec4a70c1c Add firmware partition offset 2024-05-04 13:51:43 +02:00
Nathan van Doorn c99b72af18 Add link to a Pine64 page 2024-05-04 09:49:43 +02:00
2 changed files with 12 additions and 2 deletions

View File

@ -11,7 +11,7 @@ MicroSD card as boot and OS.
### Zeroth milestone ### Zeroth milestone
- [ ] SSH daemon - [X] SSH daemon
- [ ] User who can act as a local admin - [ ] User who can act as a local admin
### First milestone ### First milestone
@ -34,13 +34,22 @@ MicroSD card as boot and OS.
To build the SD image: To build the SD image:
```bash ```bash
# building the NixOS portions
nix build .#nixosConfigurations.chopper.config.system.build.sdImage nix build .#nixosConfigurations.chopper.config.system.build.sdImage
cp result/sd-image/*.zst . # note it will be write-protected
nix-shell -p zstd --run "unzstd *.zst"
sudo dd if=$(echo -n *img) of=/dev/sda status=progress bs=4096
# build uboot
nix-build '<nixpkgs>' --argstr system aarch64-linux -A ubootRockPro64 --out-link ubootRockPro64
sudo dd if=ubootRockPro64/idbloader.img of=/dev/sda conv=fsync,notrunc bs=512 seek=64
sudo dd if=ubootRockPro64/u-boot.itb of=/dev/sda conv=fsync,notrunc bs=512 seek=16384
``` ```
Further instructions can be found on these pages: Further instructions can be found on these pages:
[NixOS Wiki/NixOS on ARM/PINE64 RockPro64](https://wiki.nixos.org/wiki/NixOS_on_ARM/PINE64_ROCKPro64) [NixOS Wiki/NixOS on ARM/PINE64 RockPro64](https://wiki.nixos.org/wiki/NixOS_on_ARM/PINE64_ROCKPro64)
[NixOS Wiki/NixOS on ARM/Installation](https://wiki.nixos.org/wiki/NixOS_on_ARM/Installation) [NixOS Wiki/NixOS on ARM/Installation](https://wiki.nixos.org/wiki/NixOS_on_ARM/Installation)
[Pine64/RockPro64/Installing Arch Linux ARM](https://pine64.org/documentation/ROCKPro64/Software/Installing_Arch_Linux_ARM/)
## Notes ## Notes

View File

@ -6,6 +6,7 @@
networking.hostName = "chopper"; networking.hostName = "chopper";
networking.firewall.enable = true; networking.firewall.enable = true;
system.stateVersion = "24.05"; system.stateVersion = "24.05";
sdImage.firmwarePartitionOffset = 32;
}; };
# Configuration of individual users # Configuration of individual users
nixosModules.users = {...}: { nixosModules.users = {...}: {
@ -15,7 +16,7 @@
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIV9ymP4tpq11a8wfUvn8eEEwAPvZZSPZTbASLh7YxOw nvd1234@gmail.com" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIV9ymP4tpq11a8wfUvn8eEEwAPvZZSPZTbASLh7YxOw nvd1234@gmail.com"
]; ];
hashedPassword = "$y$j9T$MWZj8eSLcR5nrSOCemh.U/$g9PN2cQ78F8aV2ZJP5YU7xYrEZasQ70VmO5DfQLhc90"; hashedPassword = "$y$j9T$9pxQ4Zj7OirGMmgclhUb0/$YCfaYmIaaHRrkqiqdNbQSlJ7puX8bGrMCLavq6Pe1e3";
}; };
users.mutableUsers = false; users.mutableUsers = false;
}; };