2023-12-31 00:19:22 +01:00
|
|
|
{ pkgs, depot, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (depot.users.sterni.nix.html)
|
|
|
|
__findFile
|
|
|
|
;
|
|
|
|
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";
|
2024-12-25 00:53:08 +01:00
|
|
|
text = <html> { } [
|
2023-12-31 00:19:22 +01:00
|
|
|
(<head> { } [
|
|
|
|
(<meta> { charset = "utf-8"; } null)
|
|
|
|
(<title> { } "no thoughts")
|
|
|
|
])
|
|
|
|
(<body> { } "🦩")
|
2024-12-25 00:53:08 +01:00
|
|
|
];
|
2023-12-31 00:19:22 +01:00
|
|
|
};
|
|
|
|
# TODO(sterni): tmp.sterni.lv
|
|
|
|
locations."/tmp/".root = toString /srv/http;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|