1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat: add plausible analytics for blog

This commit is contained in:
oddlama 2024-09-18 16:48:48 +02:00
parent 3383fd9a14
commit c30ec709a7
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
16 changed files with 277 additions and 91 deletions

View file

@ -1,7 +1,6 @@
{
config,
globals,
pkgs,
...
}: {
imports = [
@ -11,10 +10,13 @@
../../config/optional/zfs.nix
./acme.nix
./blog.nix
./coturn.nix
./fs.nix
./net.nix
./oauth2.nix
./plausible.nix
./postgresql.nix
];
nixpkgs.hostPlatform = "x86_64-linux";
@ -26,19 +28,6 @@
services.nginx.enable = true;
services.nginx.recommendedSetup = true;
services.nginx.virtualHosts.${globals.domains.me} = {
forceSSL = true;
useACMEWildcardHost = true;
locations."/".root = pkgs.runCommand "index.html" {} ''
mkdir -p $out
cat > $out/index.html <<EOF
<html>
<body>Not empty soon TM. Until then please go here: <a href="https://github.com/oddlama">oddlama</a></body>
</html>
EOF
'';
};
meta.promtail = {
enable = true;
proxy = "sentinel";