Commit fc99d42
authored
[shell] move nix-profile into a specific directory inside .devbox directory (#210)
## Summary
To avoid the nix-profile symlinks crowding the `.devbox/` directory, I
push them
inside a `.devbox/nix/profile/` sub-directory. The symlink is renamed to
`default` inside `.devbox/nix/profile` to be consistent with [nix
naming](https://nixos.org/manual/nix/stable/package-management/profiles.html).
I also want to rename `profileDir` to `profilePath`. That is more
accurate since
it is not a directory but a symlink. However, will do in a separate PR
since
it has some conflicts with concurrent work like #207.
## How was it tested?
```
> cd testdata/rust/rust-stable
> devbox shell
> which rustc
# see path in nix store
> devbox add openssl
> hash -r
> which openssl
# see path in nix store
# inspect directory and symlinks:
> ls -al /Users/savil/code/jetpack/devbox/testdata/rust/rust-stable/.devbox/nix/profile/
total 0
drwxr-xr-x 5 savil staff 160 Oct 6 11:55 .
drwxr-xr-x 3 savil staff 96 Oct 6 11:55 ..
lrwxr-xr-x 1 savil staff 14 Oct 6 11:55 default -> default-2-link
lrwxr-xr-x 1 savil staff 60 Oct 6 11:55 default-1-link -> /nix/store/qn9px7zzx500d0l78nhz0b39v8nm1siq-user-environment
lrwxr-xr-x 1 savil staff 60 Oct 6 11:55 default-2-link -> /nix/store/6q654ka2lcdvamxxvnsa9vp9dcj9b6yg-user-environment
```1 parent e965cfd commit fc99d42
1 file changed
+35
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
182 | 190 | | |
183 | 191 | | |
184 | 192 | | |
185 | | - | |
| 193 | + | |
186 | 194 | | |
187 | 195 | | |
188 | 196 | | |
| |||
198 | 206 | | |
199 | 207 | | |
200 | 208 | | |
201 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
202 | 215 | | |
203 | 216 | | |
204 | 217 | | |
| |||
256 | 269 | | |
257 | 270 | | |
258 | 271 | | |
259 | | - | |
260 | | - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
261 | 279 | | |
262 | 280 | | |
263 | | - | |
264 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
265 | 287 | | |
266 | 288 | | |
267 | 289 | | |
| |||
358 | 380 | | |
359 | 381 | | |
360 | 382 | | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
361 | 387 | | |
362 | 388 | | |
363 | 389 | | |
364 | | - | |
| 390 | + | |
365 | 391 | | |
366 | 392 | | |
367 | 393 | | |
368 | 394 | | |
369 | 395 | | |
370 | 396 | | |
371 | | - | |
| 397 | + | |
372 | 398 | | |
373 | 399 | | |
374 | 400 | | |
| |||
0 commit comments