Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Prevent OSX updates to break fleek #231

Open
e-minguez opened this issue Jun 23, 2023 · 2 comments
Open

Prevent OSX updates to break fleek #231

e-minguez opened this issue Jun 23, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@e-minguez
Copy link

Is your feature request related to a problem? Please describe.
When OSX is updated it restores back the /etc/zshrc file, making fleek not working.

Describe the solution you'd like
The usual workaround is to restore back the following lines at the /etc/zshrc level:

# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
  source '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix

Describe alternatives you've considered
I guess the same can be done at ~/.zshrc level

Additional context
NixOS/nix#3616

Also NixOS/nix#3616 (comment)

@bketelsen bketelsen self-assigned this Jun 23, 2023
@bketelsen bketelsen added the enhancement New feature or request label Jun 23, 2023
@tulilirockz
Copy link
Contributor

Having fleek autodetect if the system is a darwin one, then adding a function like "fix_osx_update()" in ~/.zshrc that writes the nix-importing line on /etc/zshrc should fix this issue

@bketelsen
Copy link
Member

I think it might be better to use this fix:
NixOS/nix#3616 (comment)

I'll work on this soon, since the new update is rolling out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants