aboutsummaryrefslogtreecommitdiffstats
path: root/modules/nixos
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-19 18:01:33 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-19 18:01:33 +0100
commitb4aa756d94b1ce3afc6b8faa6d6827616baaa04f (patch)
tree2fc77bf49db326274960e74bc05ee1d64113ba6c /modules/nixos
parentbuild(system/services/taskserver/certs/generate): Convert to `nix-shell` (diff)
downloadnixos-server-b4aa756d94b1ce3afc6b8faa6d6827616baaa04f.zip
fix(treewide): Update to nixos release 24.11
Diffstat (limited to '')
-rw-r--r--modules/nixos/vhack/git-server/default.nix15
1 files changed, 6 insertions, 9 deletions
diff --git a/modules/nixos/vhack/git-server/default.nix b/modules/nixos/vhack/git-server/default.nix
index 5c25bd7..a374f4c 100644
--- a/modules/nixos/vhack/git-server/default.nix
+++ b/modules/nixos/vhack/git-server/default.nix
@@ -11,12 +11,6 @@
cgitPkg =
config.services.cgit."${cfg.domain}".package;
};
-
- /*
- Until <https://github.com/NixOS/nixpkgs/pull/317293> is merged into
- nixpkgs, we have to do the list to string conversion ourselves:
- */
- toCgitRc = list: lib.strings.concatStringsSep " " list;
in {
options.vhack.git-server = {
enable = lib.mkEnableOption ''
@@ -88,9 +82,12 @@ in {
branch-sort = "age";
# Allow users to download a repo checkout with these compression formats
- snapshots = toCgitRc ["tar.gz" "zip"];
+ snapshots = ["tar.gz" "zip"];
# The template used to generate the clone url for https clone.
- clone-url = toCgitRc ["https://${cfg.domain}/$CGIT_REPO_URL" "ssh://git@${cfg.domain}/$CGIT_REPO_URL"];
+ clone-url = [
+ "https://${cfg.domain}/$CGIT_REPO_URL"
+ "ssh://git@${cfg.domain}/$CGIT_REPO_URL"
+ ];
enable-http-clone = true;
# TODO: We might want to add an logo and readme here <2024-07-31>
@@ -105,7 +102,7 @@ in {
# "month", "quarter" and "year".
max-stats = "week";
- readme = toCgitRc [
+ readme = [
":README.md"
":readme.md"
":README.mkd"