mirror of
https://github.com/thegeneralist01/config.git
synced 2026-05-30 08:37:01 +02:00
Compare commits
4 commits
4826f1fe64
...
65ad4a6d6b
| Author | SHA1 | Date | |
|---|---|---|---|
| 65ad4a6d6b | |||
| 897a0ac880 | |||
| 7a9c496f02 | |||
| 41d3da9bb3 |
3 changed files with 10 additions and 6 deletions
|
|
@ -15,6 +15,7 @@
|
||||||
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;
|
||||||
|
|
@ -67,4 +68,3 @@
|
||||||
|
|
||||||
system.stateVersion = "24.11";
|
system.stateVersion = "24.11";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -148,6 +148,7 @@ 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;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -56,18 +56,21 @@ in
|
||||||
|
|
||||||
virtualHosts."${family_domain}" = {
|
virtualHosts."${family_domain}" = {
|
||||||
root = "/var/www/${family_domain}/dist";
|
root = "/var/www/${family_domain}/dist";
|
||||||
locations."/".tryFiles = "$uri $uri.html $uri/ $uri/index.html =404";
|
locations."/".tryFiles = "$uri $uri/index.html $uri.html =404";
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
if ($http_x_forwarded_proto = "http") {
|
absolute_redirect off;
|
||||||
return 301 https://${family_domain}$request_uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~* \.(html|css|js|jpg|jpeg|png|gif|svg|ico|woff2?)$ {
|
location ~* \.(html|css|js|jpg|jpeg|png|gif|svg|ico)$ {
|
||||||
expires 1d;
|
expires 1d;
|
||||||
add_header Cache-Control "public";
|
add_header Cache-Control "public";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~* \.(ttf|woff2?)$ {
|
||||||
|
expires 1y;
|
||||||
|
add_header Cache-Control "public, immutable";
|
||||||
|
}
|
||||||
|
|
||||||
error_page 404 /404.html;
|
error_page 404 /404.html;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue