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.
This commit is contained in:
parent
1e75f709ee
commit
1fbdec0d6a
2 changed files with 10 additions and 0 deletions
2
blog/.envrc
Normal file
2
blog/.envrc
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
source_up
|
||||||
|
eval "$(lorri direnv)"
|
8
blog/shell.nix
Normal file
8
blog/shell.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
let
|
||||||
|
pkgs = import <nixpkgs> {};
|
||||||
|
in
|
||||||
|
pkgs.mkShell {
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
hugo
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue