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 ]; + }; }