4 ms·
Just wrap it in a Nix flake and define a devshell. The entire config won’t exceed more than ~10 lines of Nix. Once setup, all you need to do is: $ nix dev
by Cyph0n 9mo ago
Just wrap it in a Nix flake and define a devshell. The entire config won’t exceed more than ~10 lines of Nix.
Once setup, all you need to do is:
$ nix develop —-command hugo regenerate
$ # version is pinned by flake.lock
The beauty of this approach is that it extends to almost any CLI tool you can think of :)
- stusmall 9mo agoThis is the way. This is how I do it with mine but use channels instead of flakes because I'm a giant curmudgeon. My devshell can be found here and is dead simple: https://github.com/stusmall/stuartsmall.com/blob/main/default.nix https://github.com/stusmall/stuartsmall.com/blob/main/defaul... I used Zola for my SSG and can't think of the last breaking change I've hit. I just use the pattern of locked nix devshells for everything by default. The extra tools are used for processing images or cooklang files.