From d00f8fb1791e6f412d4a8898b53cdbe3cac20daa Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Sun, 25 Jan 2026 20:19:01 +0100 Subject: git: add shell-commands --- config/services/git/shell-commands/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 config/services/git/shell-commands/default.nix (limited to 'config/services/git/shell-commands/default.nix') diff --git a/config/services/git/shell-commands/default.nix b/config/services/git/shell-commands/default.nix new file mode 100644 index 0000000..b88e6b0 --- /dev/null +++ b/config/services/git/shell-commands/default.nix @@ -0,0 +1,12 @@ +{ lib, pkgs, ... }: +let + repo = import ./repo { inherit lib pkgs; }; + gitShellCommands = "/srv/git/git-shell-commands"; +in +{ + system.activationScripts.buildGitShell.text = '' + install --mode u=rX,g=,o= --owner git --group git --directory ${gitShellCommands} + rm -rf ${gitShellCommands}/* + ln -s ${repo} ${gitShellCommands}/repo + ''; +} -- cgit v1.2.3