bindAsUser: not necessary
This commit is contained in:
parent
bf08e1e6dc
commit
daa5448b50
@ -443,7 +443,6 @@ in
|
||||
|
||||
immich = {
|
||||
enable = true;
|
||||
bindAsUser = "motiejus";
|
||||
bindPaths = {
|
||||
"M-Camera" = "/home/motiejus/annex2/M-Camera";
|
||||
"Pictures" = "/home/motiejus/annex2/Pictures";
|
||||
|
@ -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" ];
|
||||
|
Loading…
Reference in New Issue
Block a user