bindAsUser: not necessary
This commit is contained in:
parent
bf08e1e6dc
commit
daa5448b50
@ -443,7 +443,6 @@ in
|
|||||||
|
|
||||||
immich = {
|
immich = {
|
||||||
enable = true;
|
enable = true;
|
||||||
bindAsUser = "motiejus";
|
|
||||||
bindPaths = {
|
bindPaths = {
|
||||||
"M-Camera" = "/home/motiejus/annex2/M-Camera";
|
"M-Camera" = "/home/motiejus/annex2/M-Camera";
|
||||||
"Pictures" = "/home/motiejus/annex2/Pictures";
|
"Pictures" = "/home/motiejus/annex2/Pictures";
|
||||||
|
@ -22,7 +22,7 @@ let
|
|||||||
${lib.concatMapStringsSep "\n"
|
${lib.concatMapStringsSep "\n"
|
||||||
(name: ''
|
(name: ''
|
||||||
mkdir /data/${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)
|
(lib.attrNames cfg.bindPaths)
|
||||||
}
|
}
|
||||||
exec setpriv \
|
exec setpriv \
|
||||||
@ -36,7 +36,6 @@ in
|
|||||||
options.mj.services.immich = with lib.types; {
|
options.mj.services.immich = with lib.types; {
|
||||||
enable = lib.mkEnableOption "enable immich";
|
enable = lib.mkEnableOption "enable immich";
|
||||||
bindPaths = lib.mkOption { type = attrsOf str; };
|
bindPaths = lib.mkOption { type = attrsOf str; };
|
||||||
bindAsUser = lib.mkOption { type = str; };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [ "${nixpkgs-unstable}/nixos/modules/services/web-apps/immich.nix" ];
|
imports = [ "${nixpkgs-unstable}/nixos/modules/services/web-apps/immich.nix" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user