Fixed nix-host container #2

Merged
tamipes merged 5 commits from pr-fix-actions-rebased into main 2026-09-12 17:27:38 +02:00
Showing only changes of commit 4e83bf9761 - Show all commits

View file

@ -64,25 +64,29 @@
tag = "latest"; tag = "latest";
runAsRoot = '' runAsRoot = ''
${dockerTools.shadowSetup} mkdir /etc
useradd -m -s /run/current-system/sw/bin/bash docker-ci # ${pkgs.shadow}/bin/useradd -m -s /run/current-system/sw/bin/bash docker-ci
chmod 777 /tmp
mkdir -p /var/tmp
chmod 777 /var/tmp
''; '';
# volumes to mount # volumes to mount
# -v /nix:/nix:ro # -v /nix:/nix:ro
# -v /run/current-system:/run/current-system # -v /run/current-system:/run/current-system
# -v /var/cache/docker-ci:/.cache
# -v ${pkgs.buildEnv ... }:/run/container-env # -v ${pkgs.buildEnv ... }:/run/container-env
config = { config = {
Entrypoint = [ "/run/current-system/sw/bin/bash" ]; Entrypoint = [ "/run/current-system/sw/bin/bash" ];
User = "1000:1000"; # User = "1000:1000";
Env = [ Env = [
"NIX_REMOTE=daemon" "NIX_REMOTE=daemon"
"PATH=${lib.concatStringsSep ":" [ "PATH=${lib.concatStringsSep ":" [
"/run/current-system/sw/bin" "/run/container-env/bin"
"/run/current-system/sw/sbin" "/run/current-system/sw/bin"
"/run/container-env/bin" "/run/current-system/sw/sbin"
# "/run/container-env/sbin" # This might not be needed ]}"
]}"
"SSL_CERT_FILE=/run/current-system/etc/ssl/certs/ca-bundle.crt" "SSL_CERT_FILE=/run/current-system/etc/ssl/certs/ca-bundle.crt"
"GIT_SSL_CAINFO=/run/current-system/etc/ssl/certs/ca-bundle.crt" "GIT_SSL_CAINFO=/run/current-system/etc/ssl/certs/ca-bundle.crt"