(cesium/services/nginx) switch website to a dead simple static site

This commit is contained in:
Laureηt 2024-07-21 19:49:46 +02:00
parent 65a7ae67d2
commit 74782b64a0
Signed by: Laurent
SSH key fingerprint: SHA256:pb5NrYg80So5z9hmqQFPmp//sgr+DFeJkKhmGyU2NLk
3 changed files with 48 additions and 15 deletions

View file

@ -352,11 +352,11 @@
"xdph": "xdph"
},
"locked": {
"lastModified": 1721428662,
"narHash": "sha256-fs5PV+LjzNizY/8fURUHOFHs/92JhzMPM7QQr4XsPtg=",
"lastModified": 1721463092,
"narHash": "sha256-P86aiF7iFAc5sAWL3nXf0XRfhXDAudHpmCh0sW7wrr4=",
"ref": "refs/heads/main",
"rev": "9b0993cc49b7285a2724a87fdb72bfc90cc75cc5",
"revCount": 4933,
"rev": "f642fb97df5c69267a03452533de383ff8023570",
"revCount": 4934,
"submodules": true,
"type": "git",
"url": "https://github.com/hyprwm/Hyprland"
@ -893,7 +893,8 @@
"resume": "resume",
"systems": "systems_3",
"treefmt-nix": "treefmt-nix_2",
"wallpaper": "wallpaper"
"wallpaper": "wallpaper",
"website": "website"
}
},
"rust-overlay": {
@ -1019,6 +1020,32 @@
"url": "https://images.unsplash.com/photo-1482686115713-0fbcaced6e28"
}
},
"website": {
"inputs": {
"flake-parts": [
"flake-parts"
],
"nixpkgs": [
"nixpkgs"
],
"systems": [
"systems"
]
},
"locked": {
"lastModified": 1721488043,
"narHash": "sha256-zGQHwWpiT0rMzMrstKNcbvI5fP0z1qkTcU7O0TfNJDw=",
"ref": "refs/heads/master",
"rev": "920fe9300e8883fa3052528b1ec811d96f66a44d",
"revCount": 45,
"type": "git",
"url": "https://git.fainsin.bzh/Laurent/website"
},
"original": {
"type": "git",
"url": "https://git.fainsin.bzh/Laurent/website"
}
},
"xdph": {
"inputs": {
"hyprland-protocols": "hyprland-protocols",

View file

@ -69,6 +69,12 @@
};
# cesium nginx sites
website = {
url = "git+https://git.fainsin.bzh/Laurent/website";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
inputs.systems.follows = "systems";
};
resume = {
url = "git+https://git.fainsin.bzh/Laurent/resume";
inputs.nixpkgs.follows = "nixpkgs";

View file

@ -1,17 +1,17 @@
{pkgs, ...}: let
pages = pkgs.fetchgit {
url = "https://git.fainsin.bzh/Laurent/personal-website";
branchName = "pages";
fetchLFS = true; # https://github.com/go-gitea/gitea/issues/4773
rev = "0c6fd235e496ead9b7ba3e4e918ec4b35dd1b56b"; # pages
sha256 = "sha256-XzI6x6ms5nmnSuS9oR+xU+dLRa2ttfOHrkGxIl7M/oc=";
};
in {
{
inputs,
system,
...
}: {
services.nginx.virtualHosts = {
"laurent.fainsin.bzh" = {
enableACME = true;
forceSSL = true;
root = "${pages}";
locations = {
"/" = {
root = inputs.website.packages.${system}.default;
};
};
};
"fainsin.bzh" = {
enableACME = true;