summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2020-10-18 23:31:38 +0200
committerDaiderd Jordan <daiderd@gmail.com>2020-10-18 23:31:38 +0200
commitdb82d8b9af7e6e84acadc9352c125601980f6ff0 (patch)
tree99b58b4e45a9e3294e249212a5cda9f7aee4c84c /modules
parent828879f93084fdd5b12925acc016497d2410bdc4 (diff)
clarify store/state permission check
Diffstat (limited to 'modules')
-rw-r--r--modules/system/checks.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/system/checks.nix b/modules/system/checks.nix
index 5972e27..7129f9c 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