From 2a961aaa91cc3239d187c7b15f6bd2059ac17bb7 Mon Sep 17 00:00:00 2001 From: waveringana Date: Mon, 16 Jun 2025 07:29:55 -0400 Subject: [PATCH] fixes --- hosts/valefar/default.nix | 14 ++++++++------ modules/immich/default.nix | 4 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/hosts/valefar/default.nix b/hosts/valefar/default.nix index 1d30010..930943d 100755 --- a/hosts/valefar/default.nix +++ b/hosts/valefar/default.nix @@ -21,6 +21,7 @@ # Enable modules modules.garage.enable = true; modules.forgejo.enable = true; + modules.immich.enable = true; system.stateVersion = "24.11"; @@ -80,22 +81,23 @@ wants = [ "systemd-udev-settle.service" ]; }; - systemd.mounts = [ - { + systemd.mounts = [{ what = "garage"; where = "/garage"; type = "zfs"; after = [ "zfs-import-scan.service" ]; wants = [ "zfs-import-scan.service" ]; - } - { + } { what = "storage"; where = "/storage"; type = "zfs"; after = [ "zfs-import-scan.service" ]; wants = [ "zfs-import-scan.service" ]; - } -]; + }]; + + systemd.tmpfiles.rules = [ + "d /storage/immich 0755 immich immich -" + ]; services.zfs.autoScrub.enable = true; services.zfs.trim.enable = true; diff --git a/modules/immich/default.nix b/modules/immich/default.nix index 16715d4..c73f29f 100644 --- a/modules/immich/default.nix +++ b/modules/immich/default.nix @@ -20,9 +20,9 @@ in services.immich = { enable = true; port = 2283; - host = "photos.nekomimi.pet"; + host = "0.0.0.0"; mediaLocation = immichPhotos; settings = null; }; }; -}; \ No newline at end of file +}