Files
thiloho.github.io/README.md
2025-10-24 14:18:18 +02:00

29 lines
1.1 KiB
Markdown

# thilohoholt.com
This is the source code for my personal website, which was built using the Astro web framework.
In addition to the website itself, the repository includes Nix files (`flake.nix` and `server/*.nix`), which are used to configure the self-hosted services listed on the website (https://thilohohlt.com/services) and to easily locally deploy to the corresponding NixOS server.
## Main commands
- Use the command `npm run dev` to start the Astro development server
- Run `npm run format` to format the web code with Prettier
- Run `nix develop` to enter the dev shell, which includes packages for Nix language support and formatting
- Run `nix run .#deploy-server` to evaluate if the current configuration builds successfully. If so, it will deploy the changes to the remote NixOS server
For good IDE support (e.g., NixOS option completions in `default.nix`), use the `jnoortheen.nix-ide` VSCode extension with the following settings:
```json
{
"nix.enableLanguageServer": true,
"nix.serverPath": "nil",
"nix.serverSettings": {
"nixd": {
"formatting": {
"command": ["nixfmt"]
}
}
}
}
```