weechat-declarative: copy writable file into $CONFDIR

This commit is contained in:
lassulus 2022-11-22 00:02:32 +01:00
parent 43e65c94a1
commit 336caf2832

View File

@ -148,7 +148,8 @@ let
${lib.concatStringsSep "\n" ${lib.concatStringsSep "\n"
(lib.mapAttrsToList (lib.mapAttrsToList
(name: target: /* sh */ '' (name: target: /* sh */ ''
${pkgs.coreutils}/bin/ln -s ${lib.escapeShellArg target} "$CONFDIR"/${lib.escapeShellArg name} ${pkgs.coreutils}/bin/cp ${lib.escapeShellArg target} "$CONFDIR"/${lib.escapeShellArg name}
${pkgs.coreutils}/bin/chmod +w "$CONFDIR"/${lib.escapeShellArg name}
'') '')
cfg.files cfg.files
) )