25.11
This commit is contained in:
@@ -126,11 +126,15 @@ in
|
||||
days = 2;
|
||||
mode = "all";
|
||||
};
|
||||
events = {
|
||||
pre_capture = 5;
|
||||
post_capture = 5;
|
||||
alerts = {
|
||||
retain = {
|
||||
default = 5;
|
||||
days = 5;
|
||||
mode = "motion";
|
||||
};
|
||||
};
|
||||
detections = {
|
||||
retain = {
|
||||
days = 5;
|
||||
mode = "motion";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -42,6 +42,13 @@ in
|
||||
enable = true;
|
||||
port = myData.ports.immich-server;
|
||||
|
||||
# Database configuration for NixOS 25.11
|
||||
database = {
|
||||
enable = true;
|
||||
enableVectorChord = true; # New vector search backend (recommended)
|
||||
enableVectors = false; # Disable deprecated pgvecto-rs
|
||||
};
|
||||
|
||||
# N.B. as of 24.11 default redis socket has permissions incompatible
|
||||
# with how immich is configured.
|
||||
# If immich can't find/connect to redis, it will fail on boot, so it's
|
||||
|
||||
@@ -17,22 +17,22 @@
|
||||
services.postfix = {
|
||||
enable = true;
|
||||
enableSmtp = true;
|
||||
networks = [
|
||||
"127.0.0.1/8"
|
||||
"[::ffff:127.0.0.0]/104"
|
||||
"[::1]/128"
|
||||
myData.subnets.tailscale.cidr
|
||||
];
|
||||
hostname = "relay.jakstys.lt";
|
||||
extraConfig = ''
|
||||
mydestination =
|
||||
smtpd_relay_restrictions = permit_mynetworks, reject
|
||||
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination
|
||||
smtp_tls_security_level = may
|
||||
smtpd_helo_required = yes
|
||||
disable_vrfy_command = yes
|
||||
header_size_limit = 4096000
|
||||
'';
|
||||
settings.main = {
|
||||
mynetworks = [
|
||||
"127.0.0.1/8"
|
||||
"[::ffff:127.0.0.0]/104"
|
||||
"[::1]/128"
|
||||
myData.subnets.tailscale.cidr
|
||||
];
|
||||
myhostname = "relay.jakstys.lt";
|
||||
mydestination = "";
|
||||
smtpd_relay_restrictions = "permit_mynetworks, reject";
|
||||
smtpd_recipient_restrictions = "permit_mynetworks, reject_unauth_destination";
|
||||
smtp_tls_security_level = "may";
|
||||
smtpd_helo_required = "yes";
|
||||
disable_vrfy_command = "yes";
|
||||
header_size_limit = "4096000";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user