Skip to content

Commit

Permalink
remove the fakeroot stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
capslock committed Jan 19, 2024
1 parent 1fb0fac commit a5684a7
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,20 @@
runScript
pkgs.dockerTools.caCertificates
pkgs.cudaPackages_12.cudatoolkit
(pkgs.stdenv.mkDerivation
{
name = "mkdirConfigData";
src = ./.;
phases = ["installPhase"];
installPhase = ''
mkdir -p $out/config
mkdir -p $out/data
'';
})
]
++ models;
pathsToLink = ["/bin" "/etc" "/models"];
pathsToLink = ["/bin" "/etc" "/models" "/config" "/data"];
};
enableFakechroot = true;
fakeRootCommands = ''
mkdir -p /config
mkdir -p /data
'';
config = {
Cmd = ["${pkgs.bash}/bin/bash" "${runScript}/bin/run.sh"];
Env = [
Expand Down

0 comments on commit a5684a7

Please sign in to comment.