summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-11-22 00:02:32 +0100
committerlassulus <lassulus@lassul.us>2022-11-22 00:02:32 +0100
commit336caf2832d97892bd27a90881121740d57b3906 (patch)
tree85a00125f3e8ec4fc8ef37f685eccbf0bc214b36
parent43e65c94a13d276798d15c1fc97a69467dd67820 (diff)
weechat-declarative: copy writable file into $CONFDIR
-rw-r--r--krebs/5pkgs/simple/weechat-declarative/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/krebs/5pkgs/simple/weechat-declarative/default.nix b/krebs/5pkgs/simple/weechat-declarative/default.nix
index 7b057d41b..93c73761c 100644
--- a/krebs/5pkgs/simple/weechat-declarative/default.nix
+++ b/krebs/5pkgs/simple/weechat-declarative/default.nix
@@ -148,7 +148,8 @@ let
${lib.concatStringsSep "\n"
(lib.mapAttrsToList
(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
)