From a98f742d673397a6d4ac819b6a0a53e2cc809832 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Thu, 12 Jun 2025 09:41:37 +0200 Subject: [PATCH] docker: make sure `nix config check` works (cherry picked from commit 57c72dee9b27b50b2a3b7a738cf33329acfb7236) --- docker.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker.nix b/docker.nix index a92d478d9..1f196a512 100644 --- a/docker.nix +++ b/docker.nix @@ -275,7 +275,6 @@ let ln -s ${profile} $out/nix/var/nix/profiles/default-1-link ln -s /nix/var/nix/profiles/default-1-link $out/nix/var/nix/profiles/default - ln -s /nix/var/nix/profiles/default $out${userHome}/.nix-profile ln -s ${channel} $out/nix/var/nix/profiles/per-user/${uname}/channels-1-link ln -s /nix/var/nix/profiles/per-user/${uname}/channels-1-link $out/nix/var/nix/profiles/per-user/${uname}/channels @@ -327,7 +326,7 @@ pkgs.dockerTools.buildLayeredImageWithNixDb { ''; config = { - Cmd = [ "${userHome}/.nix-profile/bin/bash" ]; + Cmd = [ (lib.getExe pkgs.bashInteractive) ]; User = "${toString uid}:${toString gid}"; Env = [ "USER=${uname}"