add local domain resolution for immich

This commit is contained in:
Noah Masur 2024-12-07 00:20:12 +00:00
parent 28ffa10a59
commit 6ca944fe42
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

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