mirror of
https://github.com/thiloho/thiloho.github.io.git
synced 2025-11-22 02:11:35 +01:00
29 lines
1.1 KiB
Markdown
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"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|