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

checks: disable nixGarbageCollector for multi-user #822

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

Conversation

zowoq
Copy link
Contributor

@zowoq zowoq commented Dec 4, 2023

Currently if you run activation as root you need to set nix.gc.user = "root"; or nix.gc.user = "";.

nixGarbageCollector = ''
if test -O /nix/store; then
echo "�[1;31merror: A single-user install can't run gc as root, aborting activation�[0m" >&2
echo "Configure the garbage collector to run as the current user:" >&2
echo >&2
echo " nix.gc.user = \"$USER\";" >&2
echo >&2
exit 2
fi

@zowoq
Copy link
Contributor Author

zowoq commented May 18, 2024

Rebased to fix merge conflict.

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