Skip to content

Commit

Permalink
container: override tmpdir and runtime dir
Browse files Browse the repository at this point in the history
We shouldn't inherit them from the current shell.
  • Loading branch information
sandydoo committed May 26, 2024
1 parent 800f19d commit 343e835
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/containers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ in
containers.${envContainerName}.isBuilding = true;
})
(lib.mkIf config.container.isBuilding {
devenv.tmpdir = lib.mkOverride 49 "/tmp";
devenv.runtime = lib.mkOverride 49 "${config.devenv.tmpdir}/devenv";
devenv.root = lib.mkForce "${homeDir}";
devenv.dotfile = lib.mkOverride 49 "${homeDir}/.devenv";
})
Expand Down

0 comments on commit 343e835

Please sign in to comment.