mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
immich
This commit is contained in:
parent
e5adac25bb
commit
084f2fa156
1 changed files with 8 additions and 0 deletions
|
|
@ -136,8 +136,16 @@
|
|||
mediaLocation = "/storage/services/immich/";
|
||||
user = "immich";
|
||||
group = "media_services";
|
||||
database = {
|
||||
passwordFile = "/etc/nixos/secrets/immich_db_password";
|
||||
};
|
||||
};
|
||||
|
||||
# Ensure the password file for Immich's database exists with correct permissions
|
||||
systemd.tmpfiles.rules = [
|
||||
"f /etc/nixos/secrets/immich_db_password 0400 immich media_services -"
|
||||
];
|
||||
|
||||
users.users.immich = {
|
||||
isSystemUser = true;
|
||||
group = "media_services";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue