nix generator: less repetition
This commit is contained in:
parent
e3b348d5c0
commit
adfa10ff62
@ -19,13 +19,12 @@ let
|
|||||||
];
|
];
|
||||||
text = ''
|
text = ''
|
||||||
set -x
|
set -x
|
||||||
${lib.concatLines (
|
${lib.concatMapStringsSep "\n"
|
||||||
map
|
|
||||||
(name: ''
|
(name: ''
|
||||||
mkdir /data/${name}
|
mkdir /data/${name}
|
||||||
bindfs -u ${cfg.bindAsUser} /var/run/immich/bind-paths/${name} /data/${name}'')
|
bindfs -u ${cfg.bindAsUser} /var/run/immich/bind-paths/${name} /data/${name}'')
|
||||||
(lib.attrNames cfg.bindPaths)
|
(lib.attrNames cfg.bindPaths)
|
||||||
)}
|
}
|
||||||
exec setpriv \
|
exec setpriv \
|
||||||
--ruid ${immich-user} \
|
--ruid ${immich-user} \
|
||||||
--inh-caps -sys_admin,-setuid,-setgid \
|
--inh-caps -sys_admin,-setuid,-setgid \
|
||||||
|
Loading…
Reference in New Issue
Block a user