my nix configs for my servers and desktop

fixes

Changed files
+10 -8
hosts
valefar
modules
immich
+8 -6
hosts/valefar/default.nix
···
# Enable modules
modules.garage.enable = true;
modules.forgejo.enable = true;
+
modules.immich.enable = true;
system.stateVersion = "24.11";
···
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;
+2 -2
modules/immich/default.nix
···
services.immich = {
enable = true;
port = 2283;
-
host = "photos.nekomimi.pet";
+
host = "0.0.0.0";
mediaLocation = immichPhotos;
settings = null;
};
};
-
};
+
}