Compare commits

..

No commits in common. "c259a93c7aed09810233b4986602f6bc9e133972" and "292c7ab911c3c3429b9ab98cda5847320710e7e6" have entirely different histories.

View file

@ -32,7 +32,7 @@ let
{ {
host = "${hostVarLibDir}/postgres"; host = "${hostVarLibDir}/postgres";
# Adjust based on container postgres data dir # Adjust based on container postgres data dir
container = "/var/lib/postgresql/16"; container = "/var/lib/postgresql/17";
user = "postgres"; user = "postgres";
uid = config.ids.uids.postgres; uid = config.ids.uids.postgres;
gid = config.ids.gids.postgres; gid = config.ids.gids.postgres;
@ -149,8 +149,7 @@ in
... ...
}: }:
{ {
config = lib.mkMerge [ config = {
{
system.stateVersion = "25.05"; system.stateVersion = "25.05";
networking = { networking = {
@ -171,7 +170,7 @@ in
services.postgresql = { services.postgresql = {
enable = true; enable = true;
package = pkgs.postgresql_16.withPackages (ps: [ ps.pgvecto-rs ]); package = pkgs.postgresql_17.withPackages (ps: [ ps.pgvecto-rs ]);
enableJIT = true; enableJIT = true;
authentication = '' authentication = ''
local all all trust local all all trust
@ -221,12 +220,10 @@ in
requires = [ "postgresql.service" ]; requires = [ "postgresql.service" ];
after = [ "postgresql.service" ]; after = [ "postgresql.service" ];
}; };
}
{ # Allow Immich user to access the media directory
# Allow Immich user to access the media directory for hardware transcoding
users.users.immich.extraGroups = [ "video" "render" ]; users.users.immich.extraGroups = [ "video" "render" ];
} };
];
}; };
}; };
}; };