Compare commits
3 commits
292c7ab911
...
c259a93c7a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c259a93c7a | ||
|
|
7bf071d0a1 | ||
|
|
a162c71e78 |
1 changed files with 70 additions and 67 deletions
|
|
@ -32,7 +32,7 @@ let
|
|||
{
|
||||
host = "${hostVarLibDir}/postgres";
|
||||
# Adjust based on container postgres data dir
|
||||
container = "/var/lib/postgresql/17";
|
||||
container = "/var/lib/postgresql/16";
|
||||
user = "postgres";
|
||||
uid = config.ids.uids.postgres;
|
||||
gid = config.ids.gids.postgres;
|
||||
|
|
@ -149,7 +149,8 @@ in
|
|||
...
|
||||
}:
|
||||
{
|
||||
config = {
|
||||
config = lib.mkMerge [
|
||||
{
|
||||
system.stateVersion = "25.05";
|
||||
|
||||
networking = {
|
||||
|
|
@ -170,7 +171,7 @@ in
|
|||
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_17.withPackages (ps: [ ps.pgvecto-rs ]);
|
||||
package = pkgs.postgresql_16.withPackages (ps: [ ps.pgvecto-rs ]);
|
||||
enableJIT = true;
|
||||
authentication = ''
|
||||
local all all trust
|
||||
|
|
@ -220,10 +221,12 @@ in
|
|||
requires = [ "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" ];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue