nix generator: less repetition

This commit is contained in:
Motiejus Jakštys 2024-09-29 23:21:04 +03:00
parent e3b348d5c0
commit adfa10ff62

View File

@ -19,13 +19,12 @@ let
];
text = ''
set -x
${lib.concatLines (
map
${lib.concatMapStringsSep "\n"
(name: ''
mkdir /data/${name}
bindfs -u ${cfg.bindAsUser} /var/run/immich/bind-paths/${name} /data/${name}'')
(lib.attrNames cfg.bindPaths)
)}
}
exec setpriv \
--ruid ${immich-user} \
--inh-caps -sys_admin,-setuid,-setgid \