Tristan Daniël Maat
5e87a5ec0c
This removes all existing services as well, in preparation of moving them to `podman`. These are easier to update to virtualisation.oci-containers while retaining the "networks" through pods.
36 lines
779 B
Markdown
36 lines
779 B
Markdown
# tlater.net server configuration
|
|
|
|
This is the NixOS configuration for [tlater.net](https://tlater.net/).
|
|
|
|
## Testing
|
|
|
|
### Building
|
|
|
|
Build the VM with:
|
|
|
|
```
|
|
nixos-rebuild build-vm --flake '.#vm'
|
|
```
|
|
|
|
### Running
|
|
|
|
Running should *mostly* be as simple as running the command the build
|
|
script echos.
|
|
|
|
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
|
|
```
|
|
|
|
Everything else should be handled by the devShell.
|
|
|
|
### New services
|
|
|
|
Whenever a new service is added, append an appropriate
|
|
`,hostfwd=::3<port>:<port>` to the `QEMU_NET_OPTS` specified in
|
|
`flake.nix` to bind the service to a host port.
|
|
|
|
There is no way to test this without binding to the host port, sadly.
|