1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-05-30 08:37:01 +02:00

Compare commits

..

No commits in common. "65ad4a6d6bd14bfbafe2091d6b3471cc788577b4" and "4826f1fe6410428918afaa90bd94fc503a2cead4" have entirely different histories.

3 changed files with 7 additions and 11 deletions

View file

@ -15,7 +15,6 @@
extraGroups = [ "wheel" "audio" "video" "input" "scanner" "docker" ]; extraGroups = [ "wheel" "audio" "video" "input" "scanner" "docker" ];
shell = pkgs.zsh; shell = pkgs.zsh;
home = "/home/thegeneralist"; home = "/home/thegeneralist";
homeMode = "0750";
hashedPasswordFile = config.age.secrets.password.path; hashedPasswordFile = config.age.secrets.password.path;
openssh.authorizedKeys.keys = let openssh.authorizedKeys.keys = let
inherit (import ../../keys.nix) thegeneralist; inherit (import ../../keys.nix) thegeneralist;
@ -68,3 +67,4 @@
system.stateVersion = "24.11"; system.stateVersion = "24.11";
} }

View file

@ -148,7 +148,6 @@ in
users.users.gitea-runner = { users.users.gitea-runner = {
isSystemUser = true; isSystemUser = true;
group = "gitea-runner"; group = "gitea-runner";
extraGroups = [ "users" ];
home = "/var/lib/gitea-runner/central"; home = "/var/lib/gitea-runner/central";
createHome = true; createHome = true;
}; };

View file

@ -56,19 +56,16 @@ in
virtualHosts."${family_domain}" = { virtualHosts."${family_domain}" = {
root = "/var/www/${family_domain}/dist"; root = "/var/www/${family_domain}/dist";
locations."/".tryFiles = "$uri $uri/index.html $uri.html =404"; locations."/".tryFiles = "$uri $uri.html $uri/ $uri/index.html =404";
extraConfig = '' extraConfig = ''
absolute_redirect off; if ($http_x_forwarded_proto = "http") {
return 301 https://${family_domain}$request_uri;
location ~* \.(html|css|js|jpg|jpeg|png|gif|svg|ico)$ {
expires 1d;
add_header Cache-Control "public";
} }
location ~* \.(ttf|woff2?)$ { location ~* \.(html|css|js|jpg|jpeg|png|gif|svg|ico|woff2?)$ {
expires 1y; expires 1d;
add_header Cache-Control "public, immutable"; add_header Cache-Control "public";
} }
error_page 404 /404.html; error_page 404 /404.html;