diff --git a/flake.nix b/flake.nix index 5dbc6a8..1feba0f 100644 --- a/flake.nix +++ b/flake.nix @@ -11,12 +11,13 @@ pkgs = nixpkgs.legacyPackages.${system}; themeName = "hermit_zola"; in + with pkgs; { - packages.blog = pkgs.stdenv.mkDerivation rec { + packages.blog = stdenv.mkDerivation rec { pname = "annotated-annals"; version = "2022-08-28"; src = ./.; - nativeBuildInputs = [ pkgs.zola ]; + nativeBuildInputs = [ zola ]; configurePhase = '' mkdir -p "themes/${themeName}" cp -r ${hermit-zola}/* "themes/${themeName}" @@ -27,8 +28,8 @@ defaultPackage = self.packages.${system}.blog; - devShell = pkgs.mkShell { - packages = [ pkgs.zola ]; + devShell = mkShell { + packages = [ just zola ]; shellHook = '' ln -fsn "${hermit-zola}" "themes/${themeName}" ''; diff --git a/justfile b/justfile new file mode 100644 index 0000000..cf6f65e --- /dev/null +++ b/justfile @@ -0,0 +1,8 @@ +finish message: + git add . + git commit -m "{{message}}" + git push + +create passage: + cd content/bible_journal && cp _template.txt "{{passage}}.md" + vi "content/bible_journal/{{passage}}.md"