feat(sterni/nix/build): add my simplistic nix website authoring tool
I am already using this outside of depot where it isn't under VCS. It makes sense to canonicalize it, also to ensure that it stays somewhat generic. Change-Id: I5595d98ab4198794c395feb4d3c08df1e2d01a36 Reviewed-on: https://cl.tvl.fyi/c/depot/+/13184 Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
This commit is contained in:
parent
34f6539a42
commit
984c930a7c
2 changed files with 60 additions and 10 deletions
|
|
@ -15,16 +15,16 @@ in
|
|||
services.nginx.virtualHosts."sterni.lv" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = pkgs.writeTextFile {
|
||||
name = "sterni.lv-http-root";
|
||||
destination = "/index.html";
|
||||
text = <html> { } [
|
||||
(<head> { } [
|
||||
(<meta> { charset = "utf-8"; } null)
|
||||
(<title> { } "no thoughts")
|
||||
])
|
||||
(<body> { } "🦩")
|
||||
];
|
||||
root = depot.users.sterni.nix.build.website "sterni.lv" { } {
|
||||
"index.html" = { ... }: pkgs.writeText "index.html" (
|
||||
<html> { } [
|
||||
(<head> { } [
|
||||
(<meta> { charset = "utf-8"; } null)
|
||||
(<title> { } "no thoughts")
|
||||
])
|
||||
(<body> { } "🦩")
|
||||
]
|
||||
);
|
||||
};
|
||||
# TODO(sterni): tmp.sterni.lv
|
||||
locations."/tmp/".root = toString /srv/http;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue