From 6ca944fe420b450554e7dc2790b154721c4715db Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sat, 7 Dec 2024 00:20:12 +0000 Subject: [PATCH] add local domain resolution for immich --- modules/nixos/services/bind.nix | 1 + modules/nixos/services/immich.nix | 3 +++ 2 files changed, 4 insertions(+) diff --git a/modules/nixos/services/bind.nix b/modules/nixos/services/bind.nix index ee4a1e1..b9c8da4 100644 --- a/modules/nixos/services/bind.nix +++ b/modules/nixos/services/bind.nix @@ -20,6 +20,7 @@ let config.hostnames.content config.hostnames.books config.hostnames.download + config.hostnames.photos ]; mkRecord = service: "${service} A ${localIp}"; localRecords = lib.concatLines (map mkRecord localServices); diff --git a/modules/nixos/services/immich.nix b/modules/nixos/services/immich.nix index cd32bc8..38031bf 100644 --- a/modules/nixos/services/immich.nix +++ b/modules/nixos/services/immich.nix @@ -37,6 +37,9 @@ # Configure Cloudflare DNS to point to this machine services.cloudflare-dyndns.domains = [ config.hostnames.photos ]; + # Point localhost to the local domain + networking.hosts."127.0.0.1" = [ config.hostnames.photos ]; + }; }