This is the source for tonybtw.com, a Hugo-based static site.
The repository includes a flake.nix so you can get a reproducible Hugo environment with Nix.
There is a /community/ section where people can share Linux tutorials, tips, or rices.
- Copy
example.mdfromcontent/community/and rename it to your own article, e.g.my-guide.md. - Edit the front matter and body to fit your content. Keep the same structure for consistency.
- Minimal front matter example:
--- title: "My Cool Setup" author: "Your Name" date: 2025-09-15 description: "A short blurb about your contribution." image: "/img/community/your-name/screenshot.png" ---
- Minimal front matter example:
- Place any screenshots in your own folder under
static/img/community/<your-name>.- Example:
static/img/community/alice/my-screenshot.png - In your Markdown, reference them as
/img/community/alice/my-screenshot.png.
- Example:
- Submit a pull request with your Markdown file and images.
This way, everyone’s contributions stay organized and easy to render.
- Nix installed
- Flakes enabled (
nix-command flakes)
Clone the repo and enter the development shell:
git clone https://github.com/tonybanters/tonybtw.com
cd tonybtw.com
nix developInside the shell, run Hugo:
hugo serveThis starts the development server at http://localhost:1313.
If you prefer nix to start the server automatically:
nix develop .#serveThis launches hugo serve right away.
To generate the static site in public/:
nix develop --command hugo- On NixOS, Nix is already installed.
- Enable flakes system-wide by adding to
/etc/nixos/configuration.nix(or wherever your configuarion.nix is defined):experimental-features = nix-command flakes - Rebuild your system if you use flakes for your config, or just restart shells for it to take effect.
- Install Nix from the official repos:
sudo pacman -S nix - Enable the Nix daemon:
sudo systemctl enable --now nix-daemon.service - Add flake support to
~/.config/nix/nix.conf:experimental-features = nix-command flakes
- Enable the overlay and emerge Nix:
sudo emerge --ask app-misc/nix - Enable the Nix daemon:
sudo rc-update add nix-daemon default sudo rc-service nix-daemon start - Add flake support to
~/.config/nix/nix.conf:experimental-features = nix-command flakes
- Install Nix using the official script (don’t use Homebrew):
curl -L https://nixos.org/nix/install | sh - Enable flakes by editing
~/.config/nix/nix.confand adding:experimental-features = nix-command flakes