2019-11-26 23:19:19 +00:00
|
|
|
# tlater.net server configuration
|
|
|
|
|
|
|
|
This is the NixOS configuration for [tlater.net](https://tlater.net/).
|
|
|
|
|
|
|
|
## Testing
|
|
|
|
|
2022-10-17 14:29:56 +01:00
|
|
|
Run a test VM with:
|
2019-11-26 23:19:19 +00:00
|
|
|
|
|
|
|
```
|
2022-10-17 14:29:56 +01:00
|
|
|
nix run
|
2019-11-26 23:19:19 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Running
|
|
|
|
|
2021-04-25 02:29:01 +01:00
|
|
|
*Note: M-2 will bring up a console for poweroff and such*
|
|
|
|
|
2021-04-12 01:35:24 +01:00
|
|
|
One caveat: create a larger disk image first. This can be done by
|
|
|
|
running the following in the repository root:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
qemu-img create -f qcow2 ./tlaternet.qcow2 20G
|
2019-11-26 23:19:19 +00:00
|
|
|
```
|
|
|
|
|
2021-04-12 01:35:24 +01:00
|
|
|
### New services
|
|
|
|
|
2022-10-17 14:29:56 +01:00
|
|
|
Whenever a new service is added, add an appropriate port binding to
|
|
|
|
`qemuNetOpts` in the default app.
|
2021-04-12 01:35:24 +01:00
|
|
|
|
|
|
|
There is no way to test this without binding to the host port, sadly.
|
2021-04-28 00:53:05 +01:00
|
|
|
|
|
|
|
## Deploying
|
|
|
|
|
2022-10-17 14:29:56 +01:00
|
|
|
Deployment is handled using
|
|
|
|
[deploy-rs](https://github.com/serokell/deploy-rs):
|
2021-04-28 00:53:05 +01:00
|
|
|
|
|
|
|
```
|
2024-03-10 23:32:25 +00:00
|
|
|
deploy .#
|
2022-10-17 14:29:56 +01:00
|
|
|
```
|