bindAsUser: not necessary

This commit is contained in:
Motiejus Jakštys 2024-09-29 23:36:01 +03:00
parent bf08e1e6dc
commit daa5448b50
2 changed files with 1 additions and 3 deletions

View File

@ -443,7 +443,6 @@ in
immich = {
enable = true;
bindAsUser = "motiejus";
bindPaths = {
"M-Camera" = "/home/motiejus/annex2/M-Camera";
"Pictures" = "/home/motiejus/annex2/Pictures";

View File

@ -22,7 +22,7 @@ let
${lib.concatMapStringsSep "\n"
(name: ''
mkdir /data/${name}
bindfs -u ${cfg.bindAsUser} /var/run/immich/bind-paths/${name} /data/${name}'')
bindfs -u ${immich-user} /var/run/immich/bind-paths/${name} /data/${name}'')
(lib.attrNames cfg.bindPaths)
}
exec setpriv \
@ -36,7 +36,6 @@ in
options.mj.services.immich = with lib.types; {
enable = lib.mkEnableOption "enable immich";
bindPaths = lib.mkOption { type = attrsOf str; };
bindAsUser = lib.mkOption { type = str; };
};
imports = [ "${nixpkgs-unstable}/nixos/modules/services/web-apps/immich.nix" ];