Skip to content

Commit

Permalink
update gitlab-runner config
Browse files Browse the repository at this point in the history
  • Loading branch information
pnmadelaine committed Oct 3, 2023
1 parent 2452bbd commit 28814f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gitlab-runner.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"/nix/var/nix/daemon-socket:/nix/var/nix/daemon-socket:ro"
];
dockerDisableCache = true;
dockerPrivileged = true;
preBuildScript = pkgs.writeScript "setup-container" ''
mkdir -p -m 0755 /nix/var/log/nix/drvs
mkdir -p -m 0755 /nix/var/nix/gcroots
Expand All @@ -40,6 +41,9 @@
mkdir -p -m 0755 /nix/var/nix/profiles/per-user/root
mkdir -p -m 0700 "$HOME/.nix-defexpr"
mkdir -p /etc/nix
echo "sandbox = true" > /etc/nix/nix.conf
. ${pkgs.nix}/etc/profile.d/nix.sh
${pkgs.nix}/bin/nix-env -i ${lib.concatStringsSep " " (with pkgs; [nix cacert git openssh])}
Expand Down
Binary file modified secrets/gitlab-runner-registration.age
Binary file not shown.

0 comments on commit 28814f9

Please sign in to comment.