Merge branch 'main' of git.vatthauer.xyz:leonv/nixos

This commit is contained in:
Leon Vatthauer 2024-04-25 09:06:15 +02:00
commit dcaebdb034
Signed by: leonv
SSH key fingerprint: SHA256:G4+ddwoZmhLPRB1agvXzZMXIzkVJ36dUYZXf5NxT+u8
3 changed files with 8 additions and 3 deletions

View file

@ -4,6 +4,7 @@
"git.vatthauer.xyz".email = "leonvatthauer@outlook.com"; "git.vatthauer.xyz".email = "leonvatthauer@outlook.com";
"bitwarden.vatthauer.xyz".email = "leonvatthauer@outlook.com"; "bitwarden.vatthauer.xyz".email = "leonvatthauer@outlook.com";
"video.vatthauer.xyz".email = "leonvatthauer@outlook.com"; "video.vatthauer.xyz".email = "leonvatthauer@outlook.com";
"files.vatthauer.xyz".email = "leonvatthauer@outlook.com";
"vatthauer.xyz".email = "leonvatthauer@outlook.com"; "vatthauer.xyz".email = "leonvatthauer@outlook.com";
}; };
} }

View file

@ -36,4 +36,9 @@
enableACME = true; enableACME = true;
root = pkgs.callPackage ./resumee-website.nix {}; root = pkgs.callPackage ./resumee-website.nix {};
}; };
services.nginx.virtualHosts."files.vatthauer.xyz" = {
forceSSL = true;
enableACME = true;
root = "/var/www";
};
} }

View file

@ -4,13 +4,12 @@ stdenv.mkDerivation {
version = "1.0"; version = "1.0";
src = builtins.fetchGit { src = builtins.fetchGit {
url = "https://git.vatthauer.xyz/leonv/resumee-website.git"; url = "https://git.vatthauer.xyz/leonv/resumee-website.git";
rev = "9516643a88018050676dd1f57f5cc7e245e55591"; rev = "5cd0f5bb30da8d7297a15be3704e4d9efc73d8b4";
}; };
nativeBuildInputs = [ git go hugo ]; nativeBuildInputs = [ git go hugo ];
buildPhase = "hugo -d $out"; buildPhase = "hugo -d $out";
outputHashAlgo = "sha256"; outputHashAlgo = "sha256";
outputHashMode = "recursive"; outputHashMode = "recursive";
outputHash = "sha256-icJv4zvaioxj9Ego0rDIFSm1PXRhAMsxmtYJj0H0+8Y="; outputHash = "sha256-PQzuhxRrruBbEfUjhPGPeJkJ6vsbMJ+5Ojg4t11oNV8=";
} }