format
This commit is contained in:
parent
b17560cd1c
commit
5e8bb998db
|
@ -10,8 +10,9 @@
|
||||||
inherit system;
|
inherit system;
|
||||||
};
|
};
|
||||||
nixite = import ./nixite/. {inherit pkgs;};
|
nixite = import ./nixite/. {inherit pkgs;};
|
||||||
in nixite // {
|
in
|
||||||
|
nixite
|
||||||
|
// {
|
||||||
packages.${system} = {
|
packages.${system} = {
|
||||||
default = nixite.mkSite (
|
default = nixite.mkSite (
|
||||||
nixite.site.applyStyle ./testing/src/style.css
|
nixite.site.applyStyle ./testing/src/style.css
|
||||||
|
@ -43,7 +44,8 @@
|
||||||
])
|
])
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
}));
|
})
|
||||||
|
);
|
||||||
|
|
||||||
serve = self.serve self.packages.${system}.default;
|
serve = self.serve self.packages.${system}.default;
|
||||||
|
|
||||||
|
|
|
@ -32,8 +32,8 @@ in rec {
|
||||||
|
|
||||||
getPaths = content: (builtins.listToAttrs (getPathsKV content));
|
getPaths = content: (builtins.listToAttrs (getPathsKV content));
|
||||||
|
|
||||||
getPathsKV = path:
|
getPathsKV = path: (
|
||||||
(if builtins.isPath path
|
if builtins.isPath path
|
||||||
then [
|
then [
|
||||||
{
|
{
|
||||||
name = baseNameOf path;
|
name = baseNameOf path;
|
||||||
|
@ -44,7 +44,8 @@ in rec {
|
||||||
then builtins.concatLists (map getPathsKV (builtins.attrValues path))
|
then builtins.concatLists (map getPathsKV (builtins.attrValues path))
|
||||||
else if builtins.isList path
|
else if builtins.isList path
|
||||||
then builtins.concatLists (map getPathsKV path)
|
then builtins.concatLists (map getPathsKV path)
|
||||||
else []);
|
else []
|
||||||
|
);
|
||||||
|
|
||||||
copyTo = prefix: site:
|
copyTo = prefix: site:
|
||||||
builtins.toString (
|
builtins.toString (
|
||||||
|
|
|
@ -103,5 +103,4 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue