From 83735da9fb789b10ca9b8b1337890c09fdf41acf Mon Sep 17 00:00:00 2001 From: chaos Date: Tue, 2 Apr 2024 18:26:03 +0200 Subject: [PATCH] fix typo & run formatter --- hosts/hetzner-arm/containers/rss/default.nix | 40 ++++++++++---------- profiles/sound/base.nix | 5 +-- 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/hosts/hetzner-arm/containers/rss/default.nix b/hosts/hetzner-arm/containers/rss/default.nix index f1bd001..4667c20 100644 --- a/hosts/hetzner-arm/containers/rss/default.nix +++ b/hosts/hetzner-arm/containers/rss/default.nix @@ -49,26 +49,28 @@ in { virtualHosts."freshrss.owo.monster" = { enableACME = true; forceSSL = true; - locations."/".proxyPass = "http://${containerIP}:80/"; - proxyWebsockets = true; - recommendedProxySettings = true; - extraConfig = '' - add_header X-Frame-Options SAMEORIGIN; - add_header X-XSS-Protection "1; mode=block"; - proxy_redirect off; - proxy_buffering off; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-Prefix /freshrss/; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Forwarded-Port $server_port; - proxy_read_timeout 90; + locations."/" = { + proxyPass = "http://${containerIP}:80/"; + proxyWebsockets = true; + recommendedProxySettings = true; + extraConfig = '' + add_header X-Frame-Options SAMEORIGIN; + add_header X-XSS-Protection "1; mode=block"; + proxy_redirect off; + proxy_buffering off; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-Prefix /freshrss/; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Port $server_port; + proxy_read_timeout 90; - # Forward the Authorization header for the Google Reader API. - proxy_set_header Authorization $http_authorization; - proxy_pass_header Authorization; - ''; + # Forward the Authorization header for the Google Reader API. + proxy_set_header Authorization $http_authorization; + proxy_pass_header Authorization; + ''; + }; }; }; } diff --git a/profiles/sound/base.nix b/profiles/sound/base.nix index 5a09d8b..699adc4 100644 --- a/profiles/sound/base.nix +++ b/profiles/sound/base.nix @@ -1,7 +1,4 @@ -{ - pkgs, - ... -}: { +{pkgs, ...}: { hardware.firmware = with pkgs; [ alsa-firmware sof-firmware