summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-10-31 18:49:42 +0100
committerlassulus <lassulus@lassul.us>2022-10-31 18:49:42 +0100
commita83dec755ca2753705254f90346e4441d2f25c7c (patch)
treebc36ae3c0396acf34e57932314c00b71a1473be4
parent3405347dff73d4ed694be28fa1644b3c0feaeb57 (diff)
git: fix "ln: failed to create symbolic link ... Read-only file system"
-rw-r--r--krebs/3modules/git.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/krebs/3modules/git.nix b/krebs/3modules/git.nix
index c038fd4c6..02c673e43 100644
--- a/krebs/3modules/git.nix
+++ b/krebs/3modules/git.nix
@@ -628,7 +628,7 @@ let
# TODO fix correctly with stringAfter
chown -R ${toString config.users.users.git.uid}:nogroup "$repodir"
fi
- ln -s ${hooks} "$repodir/hooks"
+ ln -Tfs ${hooks} "$repodir/hooks"
''
) (attrValues cfg.repos)}