Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 790 Bytes

nix.md

File metadata and controls

38 lines (24 loc) · 790 Bytes

Nix

We define flake.nix so don't forget to make sure that you have support for flakes enabled in your config.

To enter the development shell use:

nix develop

This will jump into shell environment where with all the necessary dependecies like hugo available on a pined version that were previously tested.

To build html files using nix:

nix build

Within the shell

to run hugo development server:

hugo server --buildDrafts --watch --verbose

open http://localhost:1313

Using nix run

You can also use nix run to run the build without entering the dev shell.

nix run . -- server --buildDrafts --watch --verbose

Unlike pure hugo build, nix run will also build PDFs when invoked.