add misc.md

This commit is contained in:
stupidcomputer 2024-11-05 11:58:47 -06:00
parent 66424aa9b1
commit fd07fdbb34
1 changed files with 17 additions and 0 deletions

17
misc.md Normal file
View File

@ -0,0 +1,17 @@
## cannot remove '/tmp/env-vars': Operation not permitted
If, when running nix-shell this happens:
```
coper:~/dot_testing/boxes/phone/init$ nvim shell.nix
coper:~/dot_testing/boxes/phone/init$ nix-shell
install: cannot remove '/tmp/env-vars': Operation not permitted
```
remove `/tmp/env-vars` (it's owned by root for some reason):
```
$ sudo rm /tmp/env-vars
```
Is there a fix for this?