nixos-servers/README.md

24 lines
858 B
Markdown
Raw Normal View History

2023-11-05 17:43:32 +00:00
# nixos-servers
Nix definitions to configure our physical servers.
Currently, only one physical server (named jefke) is implemented.
2023-11-05 18:03:44 +00:00
## Deployment
2023-11-13 21:44:43 +00:00
### NEW
`nix run github:numtide/nixos-anywhere -- --flake .#hypervisor root@jefke.hyp`
2023-11-05 18:03:44 +00:00
### Prerequisites
Before a NixOS definition can be deployed, some prerequite preparational steps must be performed.
1. Manually install NixOS on the physical machine. This could potentially be automated in the future with [nixos-anywhere](https://github.com/nix-community/nixos-anywhere), but for now this is a manual process.
2. Enable SSH and install authorized keys.
3. Ensure Python3 is installed for Ansible.
4. Run Ansible playbook which deploys secrets `ansible-playbook deploy_secrets.yml`.
2023-11-05 18:07:32 +00:00
### NixOS deployment
2023-11-11 23:04:37 +00:00
Finally, the NixOS definition can be deployed as follows: `nix run github:serokell/deploy-rs`.