flake.nix
This commit is contained in:
@@ -5,13 +5,6 @@
|
||||
meta,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
nimhStaticSite = pkgs.runCommand "nimh-static-site" { } ''
|
||||
mkdir -p $out
|
||||
cp -r ${../homelab-services/nimh-static}/* $out/
|
||||
'';
|
||||
in
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
@@ -93,23 +86,6 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
# Setup vhosts via nginx
|
||||
# all more complicated should route
|
||||
# through k3s traefic
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
|
||||
virtualHosts."nimh.roypository.com" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "roypository.com";
|
||||
|
||||
locations."/" = {
|
||||
root = nimhStaticSite;
|
||||
index = "index.html";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# ================================ #
|
||||
# K3S SERVICE #
|
||||
# ================================ #
|
||||
|
||||
Reference in New Issue
Block a user