From 1fbdec0d6a9252c4787142dc428f096b54d02c32 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 9 Mar 2020 23:28:24 +0000 Subject: Initialize //blog with lorri To create new posts, I run... ```shell hugo new name-of-post.md ``` While writing posts, I run... ```shell hugo serve -D ``` I need hugo available on PATH environment variable, which lorri provides. --- blog/.envrc | 2 ++ blog/shell.nix | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 blog/.envrc create mode 100644 blog/shell.nix diff --git a/blog/.envrc b/blog/.envrc new file mode 100644 index 000000000000..b80e28b4b815 --- /dev/null +++ b/blog/.envrc @@ -0,0 +1,2 @@ +source_up +eval "$(lorri direnv)" diff --git a/blog/shell.nix b/blog/shell.nix new file mode 100644 index 000000000000..d1b4f49942bc --- /dev/null +++ b/blog/shell.nix @@ -0,0 +1,8 @@ +let + pkgs = import {}; +in +pkgs.mkShell { + buildInputs = with pkgs; [ + hugo + ]; +} -- cgit 1.4.1