weilite/webdav: init

This commit is contained in:
xinyangli 2025-04-06 22:21:16 +08:00
parent ea3e518de3
commit a7b3579f55
No known key found for this signature in database
5 changed files with 65 additions and 14 deletions

View file

@ -86,16 +86,6 @@ in
'';
};
systemd.mounts = [
{
what = "originals";
where = "/mnt/immich/external-library/xin";
type = "virtiofs";
options = "ro,nodev,nosuid";
wantedBy = [ "immich-server.service" ];
}
];
systemd.timers.immich-auto-stack = {
enable = true;
wantedBy = [ "immich-server.service" ];
@ -135,8 +125,8 @@ in
systemd.services.immich-server = {
serviceConfig = {
ReadWritePaths = [
"/mnt/immich/external-library/xin"
BindReadOnlyPaths = [
"/mnt/photos/xin/originals:/mnt/immich/external-library/xin"
];
Environment = "IMMICH_CONFIG_FILE=${config.sops.templates."immich/config.json".path}";
};
@ -161,8 +151,11 @@ in
users.users.immich.extraGroups = [
"video"
"render"
"privimg"
];
users.groups.privimg = { };
users.groups.immich_auto_stack = { };
users.users.immich_auto_stack = {
isSystemUser = true;