tvl-depot/users/sterni/machines/ingeborg/http/sterni.lv.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
683 B
Nix
Raw Normal View History

{ pkgs, depot, ... }:
let
inherit (depot.users.sterni.nix.html)
__findFile
withDoctype
;
in
{
imports = [
./nginx.nix
];
config = {
services.nginx.virtualHosts."sterni.lv" = {
enableACME = true;
forceSSL = true;
root = pkgs.writeTextFile {
name = "sterni.lv-http-root";
destination = "/index.html";
text = withDoctype (<html> { } [
(<head> { } [
(<meta> { charset = "utf-8"; } null)
(<title> { } "no thoughts")
])
(<body> { } "🦩")
]);
};
# TODO(sterni): tmp.sterni.lv
locations."/tmp/".root = toString /srv/http;
};
};
}