Skip to content

Commit

Permalink
Merge pull request #905 from mcdonc/normalize-devenv-paths-in-toplevel
Browse files Browse the repository at this point in the history
normalize paths when root is /
  • Loading branch information
domenkozar authored Dec 31, 2023
2 parents dbcacb9 + a9950e8 commit d4da9da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/top-level.nix
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,9 @@ in
'';
}
];
devenv.dotfile = config.devenv.root + "/.devenv";
devenv.state = config.devenv.dotfile + "/state";
# use builtins.toPath to normalize path if root is "/" (container)
devenv.dotfile = builtins.toPath (config.devenv.root + "/.devenv");
devenv.state = builtins.toPath (config.devenv.dotfile + "/state");
devenv.profile = profile;

env.DEVENV_PROFILE = config.devenv.profile;
Expand Down

0 comments on commit d4da9da

Please sign in to comment.