tidy imports

This commit is contained in:
tristan 2023-12-31 09:25:25 +00:00
parent c36fece776
commit b17560cd1c
3 changed files with 4 additions and 11 deletions

View file

@ -10,14 +10,7 @@
inherit system;
};
nixite = import ./nixite/. {inherit pkgs;};
in {
serve = nixite.serve;
mkSite = nixite.mkSite;
html = nixite.html;
elems = nixite.elems;
site = nixite.site;
md = nixite.md;
style = nixite.style;
in nixite // {
packages.${system} = {
default = nixite.mkSite (

View file

@ -1,5 +1,5 @@
{pkgs, ...}: {
mkSite = import ./make-site.nix {inherit pkgs;};
mkSite = import ./make-site.nix pkgs;
serve = site: (pkgs.writeShellScriptBin "serve" ''
${pkgs.caddy}/bin/caddy file-server --root ${site}
'');

View file

@ -1,7 +1,7 @@
{pkgs, ...}: raw: let
{stdenv, ...}: raw: let
site = import ./site.nix;
in
pkgs.stdenv.mkDerivation {
stdenv.mkDerivation {
name = "site";
src = ./.;
buildPhase = ''