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

chore: format everything

This commit is contained in:
oddlama 2024-11-26 13:34:55 +01:00
parent deca311c68
commit 7ccd7856ee
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
162 changed files with 4750 additions and 3718 deletions

View file

@ -3,9 +3,11 @@
lib,
globals,
...
}: let
}:
let
plausibleDomain = "analytics.${globals.domains.me}";
in {
in
{
age.secrets.plausible-secret = {
generator.script = args: "${args.pkgs.openssl}/bin/openssl rand -base64 64";
mode = "440";
@ -61,7 +63,7 @@ in {
services.nginx = {
upstreams.plausible = {
servers."127.0.0.1:${toString config.services.plausible.server.port}" = {};
servers."127.0.0.1:${toString config.services.plausible.server.port}" = { };
extraConfig = ''
zone plausible 64k;
keepalive 2;
@ -75,7 +77,7 @@ in {
forceSSL = true;
useACMEWildcardHost = true;
oauth2.enable = true;
oauth2.allowedGroups = ["access_analytics"];
oauth2.allowedGroups = [ "access_analytics" ];
locations."/".proxyPass = "http://plausible";
locations."= /js/script.js" = {
proxyPass = "http://plausible";
@ -111,7 +113,7 @@ in {
};
};
users.groups.plausible = {};
users.groups.plausible = { };
users.users.plausible = {
group = "plausible";
isSystemUser = true;