From a20eb07837b9ef15d6ff24f3ad8fc3ff5de4c842 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 25 Dec 2024 16:48:05 +0100 Subject: fix(modules/git-server): Use `vhack.persist` for data-directories This avoids having to create them manually on the server and is, overall just generally a better way to solve this problem. --- tests/by-name/gi/git-server/test.nix | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'tests') diff --git a/tests/by-name/gi/git-server/test.nix b/tests/by-name/gi/git-server/test.nix index 0cf3ee8..5cd8c33 100644 --- a/tests/by-name/gi/git-server/test.nix +++ b/tests/by-name/gi/git-server/test.nix @@ -62,18 +62,8 @@ in ../../../../modules ]; - system.activationScripts = { - gitolite = { - text = '' - if ! [ -d /srv/gitolite ]; then - mkdir --parents /srv/gitolite - chown -R git:git /srv/gitolite - fi - ''; - }; - }; - vhack = { + persist.enable = true; openssh.enable = true; nginx = { enable = true; -- cgit 1.4.1