Add: porzh.me landing page
This commit is contained in:
parent
fe5cd05d60
commit
a68fbcf432
8 changed files with 97 additions and 52 deletions
28
modules/sites/porzh.me.nix
Normal file
28
modules/sites/porzh.me.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
porzhSite = pkgs.stdenv.mkDerivation {
|
||||
pname = "porzh-site";
|
||||
version = "1.0";
|
||||
src = ./porzh.me; # le dossier avec ton index.html, image, etc.
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r * $out/
|
||||
'';
|
||||
};
|
||||
in {
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
virtualHosts = {
|
||||
"porzh.me" = {
|
||||
serverAliases = [ "www.porzh.me" ];
|
||||
extraConfig = ''
|
||||
root * ${porzhSite}
|
||||
file_server
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue