tidy imports
This commit is contained in:
parent
c36fece776
commit
b17560cd1c
|
@ -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 (
|
||||
|
|
|
@ -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}
|
||||
'');
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{pkgs, ...}: raw: let
|
||||
{stdenv, ...}: raw: let
|
||||
site = import ./site.nix;
|
||||
in
|
||||
pkgs.stdenv.mkDerivation {
|
||||
stdenv.mkDerivation {
|
||||
name = "site";
|
||||
src = ./.;
|
||||
buildPhase = ''
|
||||
|
|
Loading…
Reference in a new issue