Skip to content

Commit a9950e8

Browse files
committed
normalize paths when root is /
1 parent dbcacb9 commit a9950e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/modules/top-level.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,9 @@ in
194194
'';
195195
}
196196
];
197-
devenv.dotfile = config.devenv.root + "/.devenv";
198-
devenv.state = config.devenv.dotfile + "/state";
197+
# use builtins.toPath to normalize path if root is "/" (container)
198+
devenv.dotfile = builtins.toPath (config.devenv.root + "/.devenv");
199+
devenv.state = builtins.toPath (config.devenv.dotfile + "/state");
199200
devenv.profile = profile;
200201

201202
env.DEVENV_PROFILE = config.devenv.profile;

0 commit comments

Comments
 (0)