flake.nix

This commit is contained in:
2026-05-26 23:45:58 -05:00
parent 24a52ae975
commit da3a9a53d9
3 changed files with 113 additions and 24 deletions
-24
View File
@@ -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 #
# ================================ #