Setup gitolite

This commit is contained in:
Daniel Frank 2019-11-08 22:24:15 +01:00
parent baa1c1f5fe
commit 7f2ba45f29
Signed by: tokudan
GPG key ID: 063CCCAD04182D32
3 changed files with 17 additions and 0 deletions

View file

@ -14,6 +14,7 @@
./borgbackup.nix
./nginx.nix
./hopglass-frontend.nix
./gitolite.nix
];
# Configuration options for the mailserver

11
gitolite.nix Normal file
View file

@ -0,0 +1,11 @@
{ config, lib, pkgs, ... }:
{
services.gitolite = {
enable = true;
dataDir = "/srv/gitolite";
user = "git";
group = "git";
adminPubkey = "";
};
}

View file

@ -22,6 +22,11 @@
fsType = "ext4";
};
fileSystems."/srv/gitolite" =
{ device = "/dev/disk/by-uuid/5c846acb-aa67-466d-a0a3-31d1f778bf4d";
fsType = "ext4";
};
# encrypt the swap device. why not.
# needs the UUID of the partition, as the swap id will be lost on every boot.
swapDevices =