diff options
author | Franck Cuny <franck@fcuny.net> | 2023-05-10 18:18:15 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-05-10 18:18:15 -0700 |
commit | bc95ae6e46b19e1f53deded39fbb44e40a41d348 (patch) | |
tree | 3bfca9c8c7b1ba6edb6433ebb89826bc3d51c121 /modules/services/gitolite | |
parent | profiles/music-server: fix backup configuration (diff) | |
download | world-bc95ae6e46b19e1f53deded39fbb44e40a41d348.tar.gz |
profiles/git-server: move gitolite and cgit
Diffstat (limited to 'modules/services/gitolite')
-rw-r--r-- | modules/services/gitolite/default.nix | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/modules/services/gitolite/default.nix b/modules/services/gitolite/default.nix deleted file mode 100644 index 1cfab29..0000000 --- a/modules/services/gitolite/default.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ config, pkgs, lib, ... }: -let cfg = config.my.services.gitolite; -in -{ - options.my.services.gitolite = with lib; { - enable = mkEnableOption "gitolite"; - stateDir = mkOption { - type = types.str; - example = "/var/lib/gitolite"; - description = "gitolite base directory"; - }; - }; - - # FIXME: I also ran the following as the git user: - # git config --global init.defaultBranch main - # to ensure that new repositories are created with the default - # branch set to `main'. - config = lib.mkIf cfg.enable { - services.gitolite = { - enable = true; - dataDir = cfg.stateDir; - adminPubkey = "sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIGX4+CuUjiX6Doi4n6RqmznzFUyRrxKhEFvuIxROzXDKAAAABHNzaDo="; - user = "git"; - group = "git"; - extraGitoliteRc = '' - # Make dirs/files group readable, needed for webserver/cgit. (Default - # setting is 0077.) - $RC{UMASK} = 0027; - $RC{GIT_CONFIG_KEYS} = 'cgit.desc cgit.hide cgit.ignore cgit.owner cgit.section'; - $RC{LOCAL_CODE} = "$rc{GL_ADMIN_BASE}/local"; - push( @{$RC{ENABLE}}, 'symbolic-ref' ); - ''; - }; - - my.services.backup = { paths = [ cfg.stateDir ]; }; - }; -} |