git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #49338 from FeepingCreature/improve-warning-message

improve shell.nix warning messages

commita3dbeed475de3cf8c6688eb3a4a31ac61c8c1d13 authorRobert Hensing <roberth@users.noreply.github.com> dateWed 31 Oct 2018, 23:33 (8 years ago) parentc5c2da983a65a9
1 file changed+2−2
nixos/modules/programs/shell.nix+2−2
nixos/modules/programs/shell.nix+2−2
@@ -13,7 +13,7 @@ with lib;
1313 # Set up the per-user profile.
1414 mkdir -m 0755 -p "$NIX_USER_PROFILE_DIR"
1515 if [ "$(stat --printf '%u' "$NIX_USER_PROFILE_DIR")" != "$(id -u)" ]; then
16− echo "WARNING: bad ownership on $NIX_USER_PROFILE_DIR, should be $(id -u)" >&2
16+ echo "WARNING: the per-user profile dir $NIX_USER_PROFILE_DIR should belong to user id $(id -u)" >&2
1717 fi
1818
1919 if [ -w "$HOME" ]; then
@@ -35,7 +35,7 @@ with lib;
3535 NIX_USER_GCROOTS_DIR="/nix/var/nix/gcroots/per-user/$USER"
3636 mkdir -m 0755 -p "$NIX_USER_GCROOTS_DIR"
3737 if [ "$(stat --printf '%u' "$NIX_USER_GCROOTS_DIR")" != "$(id -u)" ]; then
38− echo "WARNING: bad ownership on $NIX_USER_GCROOTS_DIR, should be $(id -u)" >&2
38+ echo "WARNING: the per-user gcroots dir $NIX_USER_GCROOTS_DIR should belong to user id $(id -u)" >&2
3939 fi
4040
4141 # Set up a default Nix expression from which to install stuff.