Skip to content

Commit

Permalink
gitlab-runner: Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
bgamari committed Feb 4, 2025
1 parent 7d94e01 commit 8be7adf
Showing 1 changed file with 41 additions and 38 deletions.
79 changes: 41 additions & 38 deletions modules/services/gitlab-runner.nix
Original file line number Diff line number Diff line change
Expand Up @@ -667,45 +667,48 @@ in
environment = { #config.networking.proxy.envVars // {
HOME = "${config.users.users.gitlab-runner.home}";
NIX_SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
} // (if config.nix.useDaemon then { NIX_REMOTE = "daemon"; } else {});
path = with pkgs; [
bash
gawk
jq
moreutils
remarshal
# util-linux
cfg.package
coreutils
gnugrep
gnused
] ++ cfg.extraPackages;

script = ''
${configureScript}/bin/gitlab-runner-configure && ${startScript}/bin/gitlab-runner-start
'';

serviceConfig = {
ProcessType = "Interactive";
ThrottleInterval = 30;

# StandardOutPath = "/var/lib/gitlab-runner/out.log";
# StandardErrorPath = "/var/lib/gitlab-runner/err.log";
# The combination of KeepAlive.NetworkState and WatchPaths
# will ensure that buildkite-agent is started on boot, but
# after networking is available (so the hostname is
# correct).
RunAtLoad = true;
} // (if config.nix.useDaemon then { NIX_REMOTE = "daemon"; } else { });

path =
(with pkgs; [
bash
gawk
jq
moreutils
remarshal
# util-linux
coreutils
gnugrep
gnused
])
++ [ cfg.package ]
++ cfg.extraPackages;

script = ''
${configureScript}/bin/gitlab-runner-configure && ${startScript}/bin/gitlab-runner-start
'';

serviceConfig = {
ProcessType = "Interactive";
ThrottleInterval = 30;

# StandardOutPath = "/var/lib/gitlab-runner/out.log";
# StandardErrorPath = "/var/lib/gitlab-runner/err.log";
# The combination of KeepAlive.NetworkState and WatchPaths
# will ensure that buildkite-agent is started on boot, but
# after networking is available (so the hostname is
# correct).
RunAtLoad = true;
# KeepAlive.NetworkState = true;
WatchPaths = [
"/etc/resolv.conf"
"/Library/Preferences/SystemConfiguration/NetworkInterfaces.plist"
];

GroupName = "gitlab-runner";
UserName = "gitlab-runner";
WorkingDirectory = config.users.users.gitlab-runner.home;
};
WatchPaths = [
"/etc/resolv.conf"
"/Library/Preferences/SystemConfiguration/NetworkInterfaces.plist"
];

GroupName = "gitlab-runner";
UserName = "gitlab-runner";
WorkingDirectory = config.users.users.gitlab-runner.home;
};

};
# systemd.services.gitlab-runner = {
Expand Down

0 comments on commit 8be7adf

Please sign in to comment.