From db82d8b9af7e6e84acadc9352c125601980f6ff0 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Sun, 18 Oct 2020 23:31:38 +0200 Subject: [PATCH] clarify store/state permission check --- modules/system/checks.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/system/checks.nix b/modules/system/checks.nix index 5972e279..7129f9c0 100644 --- a/modules/system/checks.nix +++ b/modules/system/checks.nix @@ -157,7 +157,11 @@ let echo >&2 "error: the store is not owned by this user, but /nix/var/nix/db is writable" echo >&2 "If you are using the daemon:" echo >&2 - echo >&2 " sudo chown -R /nix/var/nix/db" + echo >&2 " sudo chown -R root:wheel /nix/var/nix/db" + echo >&2 + echo >&2 "Otherwise:" + echo >&2 + echo >&2 " sudo chown -R $USER:staff /nix/store" echo >&2 exit 2 fi