This repository has been archived on 2024-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
nixos/hosts
Payas Relekar 3061442291 Build and deploy nixos from Enterprise to Bebop
- Generate binary cache signing keys on Enterprise
- Add private key to enterprise config for signing
- Add public key to Bebop for accepting packages signed by Enterprise
- Setup hosts files on both systems to include other host name at local reserved
  ip address
- Bebop: Enable OpenSSH access for root user
  - Via SSH only, NO password
  - Use same ssh public key as normal user
- Enterprise: Enable Qemu for compiling aarch64 pacakges

Deploy NixOS from enterprise to bebop with below:

```
nixos-rebuild boot --flake .#bebop -v --target-host root@bebop --build-host
localhost
```

Notice lack of sudo. Remote server does not ask for password for root (usually),
because it is supposed to use SSH key.

TODO: Add payas as trusted user in nix config for bebop so deploying via root is
not necessary. It is generally not best idea to expose root over network.
2022-04-16 20:12:15 +05:30
..
bebop Build and deploy nixos from Enterprise to Bebop 2022-04-16 20:12:15 +05:30
enterprise Build and deploy nixos from Enterprise to Bebop 2022-04-16 20:12:15 +05:30