Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make $HOME writable #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Make $HOME writable #52

wants to merge 1 commit into from

Conversation

notgne2
Copy link

@notgne2 notgne2 commented Jul 1, 2022

There is of course a 7 line warning explaining why it isn't writable but I guess it went over my head so I tried making it writable anyway, wouldn't using an mktemp directory already avoid the issues/differences between multi-user and single-user Nix anyway without making it unwritable?

Making this writable resolves issues with node-gyp, which wants to re-download things from the internet during the build process if it can't find things in $HOME, there's probably some weird env vars to work around this, but this seemed like the simplest path to take (and I have this done elsewhere too).

npm_config_nodedir is also something I've seen used previously (at least in pnpm2nix), which supposedly also helps with install scripts wanting to download things when they shouldn't.

There should probably still a comment but I didn't write it myself since I think I don't quite understand the issue.

@notgne2 notgne2 requested review from yorickvP and a team July 1, 2022 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant