Add immich-public-proxy

Add immich-public-proxy service
Add immich.thehellings.com vhost
Re-arrange the host file to alphabetical
This commit is contained in:
Greg Hellings
2025-12-06 22:28:03 -06:00
parent 35078fc70d
commit bbbfb6cbf6
+42 -28
View File
@@ -16,12 +16,36 @@
./postgres.nix ./postgres.nix
]; ];
age.secrets.runner-deployer = {
file = ../../secrets/gitlab/linode-deployer-runner-reg.age;
owner = "gitlab-runner";
};
environment.systemPackages = with pkgs; [
bind
graphviz
nix-du
pgloader
];
greg = { greg = {
home = false; home = false;
linode.enable = true; linode.enable = true;
proxies."immich.thehellings.com" = {
genAliases = false;
target = "http://localhost:${builtins.toString config.services.immich-public-proxy.port}";
ssl = true;
};
tailscale.enable = true; tailscale.enable = true;
}; };
networking = {
networkmanager.enable = lib.mkForce false;
hostName = "linode";
domain = "thehellings.com";
nameservers = [ "100.88.91.27" ];
};
programs.ssh.extraConfig = lib.strings.concatStringsSep "\n" [ programs.ssh.extraConfig = lib.strings.concatStringsSep "\n" [
"Host chronicles.shire-zebra.ts.net" "Host chronicles.shire-zebra.ts.net"
" User backup" " User backup"
@@ -30,32 +54,21 @@
" UserKnownHostsFile /dev/null" " UserKnownHostsFile /dev/null"
]; ];
networking = { services = {
networkmanager.enable = lib.mkForce false; gitlab-runner = {
hostName = "linode"; enable = true;
domain = "thehellings.com"; services.deployer = {
nameservers = [ "100.88.91.27" ]; executor = "shell";
}; authenticationTokenConfigFile = config.age.secrets.runner-deployer.path;
};
};
age.secrets.runner-deployer = { immich-public-proxy = {
file = ../../secrets/gitlab/linode-deployer-runner-reg.age; enable = true;
owner = "gitlab-runner"; immichUrl = "https://immich.shire-zebra.ts.net";
};
services.gitlab-runner = {
enable = true;
services.deployer = {
executor = "shell";
authenticationTokenConfigFile = config.age.secrets.runner-deployer.path;
}; };
}; };
users.users.gitlab-runner = {
isSystemUser = true;
group = "gitlab-runner";
};
users.groups.gitlab-runner = { };
systemd.services."gitlab-runner".serviceConfig = { systemd.services."gitlab-runner".serviceConfig = {
DynamicUser = lib.mkForce false; DynamicUser = lib.mkForce false;
User = "gitlab-runner"; User = "gitlab-runner";
@@ -77,10 +90,11 @@
} }
]; ];
environment.systemPackages = with pkgs; [ users = {
bind groups.gitlab-runner = { };
graphviz users.gitlab-runner = {
nix-du isSystemUser = true;
pgloader group = "gitlab-runner";
]; };
};
} }