mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
gitlab module: gitaly fixes
This commit is contained in:
parent
546fa2e118
commit
69c396f273
1 changed files with 5 additions and 1 deletions
|
@ -29,8 +29,12 @@ let
|
||||||
|
|
||||||
gitalyToml = pkgs.writeText "gitaly.toml" ''
|
gitalyToml = pkgs.writeText "gitaly.toml" ''
|
||||||
socket_path = "${lib.escape ["\""] gitalySocket}"
|
socket_path = "${lib.escape ["\""] gitalySocket}"
|
||||||
|
bin_dir = "${cfg.packages.gitaly}/bin"
|
||||||
prometheus_listen_addr = "localhost:9236"
|
prometheus_listen_addr = "localhost:9236"
|
||||||
|
|
||||||
|
[git]
|
||||||
|
bin_path = "${pkgs.git}/bin/git"
|
||||||
|
|
||||||
[gitaly-ruby]
|
[gitaly-ruby]
|
||||||
dir = "${cfg.packages.gitaly.ruby}"
|
dir = "${cfg.packages.gitaly.ruby}"
|
||||||
|
|
||||||
|
@ -489,7 +493,7 @@ in {
|
||||||
after = [ "network.target" "gitlab.service" ];
|
after = [ "network.target" "gitlab.service" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
environment.HOME = gitlabEnv.HOME;
|
environment.HOME = gitlabEnv.HOME;
|
||||||
path = with pkgs; [ gitAndTools.git cfg.packages.gitaly.rubyEnv ];
|
path = with pkgs; [ gitAndTools.git cfg.packages.gitaly.rubyEnv ruby ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
#PermissionsStartOnly = true; # preStart must be run as root
|
#PermissionsStartOnly = true; # preStart must be run as root
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue