set up basic project structure
This commit is contained in:
parent
a0bb06f703
commit
3ee5b0af43
8
.direnv/bin/nix-direnv-reload
Executable file
8
.direnv/bin/nix-direnv-reload
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
dir="$(realpath $(dirname ${BASH_SOURCE[0]})/../..)"
|
||||
_nix_direnv_force_reload=1 direnv exec "$dir" true
|
||||
direnv reload
|
||||
# direnv reload updates the mtime of .envrc. Also update the timestamp of the
|
||||
# profile_rc file to keep track that we actually are up to date.
|
||||
touch $dir/.direnv/{nix,flake}-profile-*.rc
|
||||
|
1
.direnv/nix-profile-.4195.809cca784b9f
Symbolic link
1
.direnv/nix-profile-.4195.809cca784b9f
Symbolic link
|
@ -0,0 +1 @@
|
|||
/nix/store/665i5kn31xhw3ka3qbivy4if39jpwlxf-mart-w.de-0.1-env
|
1856
.direnv/nix-profile-.4195.809cca784b9f.rc
Normal file
1856
.direnv/nix-profile-.4195.809cca784b9f.rc
Normal file
File diff suppressed because it is too large
Load diff
5
archetypes/default.md
Normal file
5
archetypes/default.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
+++
|
||||
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||
date = {{ .Date }}
|
||||
draft = true
|
||||
+++
|
21
default.nix
Normal file
21
default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{pkgs ? import <nixpkgs> {}}:
|
||||
with pkgs;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mart-w.de-${version}";
|
||||
version = "0.1";
|
||||
|
||||
src = ./.;
|
||||
|
||||
nativeBuildInputs = [
|
||||
hugo
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
hugo
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r ./public/* $out
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue