Make miifox.net not as huge

This commit is contained in:
Charlotte 🦝 Delenk 2022-04-06 14:59:25 +01:00
parent d41a4844de
commit b294f369b8
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 6 additions and 5 deletions

View file

@ -49,7 +49,7 @@
auto-key-locate = [ "local" "dane" "cert" "wkd" ];
};
};
#services.gpg-agent = {
#enable = true;
#};
services.gpg-agent = {
enable = true;
};
}

View file

@ -1,15 +1,16 @@
miifox-net: { stdenvNoCC, python3Packages, ... }: stdenvNoCC.mkDerivation {
miifox-net: { lndir, stdenvNoCC, python3Packages, ... }: stdenvNoCC.mkDerivation {
name = "miifox.net";
srcs = miifox-net;
nativeBuildInputs = [
python3Packages.chevron
lndir
];
buildPhase = ''
chevron -d index.json index.handlebars > index.html
'';
installPhase = ''
mkdir $out
cp -r * $out
lndir -quiet ${miifox-net} $out
rm $out/index.json
'';
}