mirror of
https://github.com/thegeneralist01/config.git
synced 2026-10-09 21:03:30 +02:00
nixos: migrate server services to thegeneralist
Move hosted services and secrets from the retired central hosts, persist USB storage and ownership, harden RTL8822BU Wi-Fi, repair DNS behavior, and order CoreDNS after Tailscale.
This commit is contained in:
parent
7f5ecd917b
commit
bd887883f7
41 changed files with 183 additions and 511 deletions
28
hosts/thegeneralist/cache/default.nix
vendored
Normal file
28
hosts/thegeneralist/cache/default.nix
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ pkgs, config, ... }: let
|
||||
domain = "cache.thegeneralist01.com";
|
||||
|
||||
ssl = {
|
||||
quic = true;
|
||||
useACMEHost = "thegeneralist01.com";
|
||||
};
|
||||
in {
|
||||
age.secrets.cacheSigningKey.file = ./key.age;
|
||||
services.nix-serve = {
|
||||
enable = true;
|
||||
package = pkgs.nix-serve-ng;
|
||||
secretKeyFile = config.age.secrets.cacheSigningKey.path;
|
||||
port = 1337;
|
||||
openFirewall = false;
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts.${domain} = ssl // {
|
||||
locations."/".proxyPass = "http://127.0.0.1:1337";
|
||||
locations."= /".return = "301 @404";
|
||||
locations."@404".return = "404 https://thegeneralist01.com/404";
|
||||
|
||||
extraConfig = /* nginx */ ''
|
||||
proxy_intercept_errors on;
|
||||
error_page 404 = @404;
|
||||
'';
|
||||
};
|
||||
}
|
||||
7
hosts/thegeneralist/cache/key.age
vendored
Normal file
7
hosts/thegeneralist/cache/key.age
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-ed25519 pp9qdQ hxgD5olkewZpdkhEmVaGYypGzM403Xa7INBRzt78+kU
|
||||
LTj/042NIvyLcDA3VpWO6M+pdl2fhzjyXzA3jWP+III
|
||||
--- E7wuA8Hb4tpfvqQtPxexcGGK9ng/NVhI16XcErKVAFE
|
||||
-þŒüá8'ß|Ú<>dù²ùÊ#j9•(æ
|
||||
MAF+‹[¼û’eNk_Ñ2\ËÆº#d"øÅð§‹Òµw<PPU- »M¶G.Ôõ«G/?™¾(qØ#{_C}IìJÚT…Ï»
|
||||
NHQãm¨ †^H¶´É¶<C389>ž òY±{aÈÙgfŽs“S›šø.À
|
||||
Loading…
Add table
Add a link
Reference in a new issue