Skip to content

Commit cc5bcee

Browse files
committed
verify /nix is setup properly
1 parent 0706a97 commit cc5bcee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/setupfunc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ check_path() {
8484

8585
# set up nix home manager
8686
function setup_home-manager (){
87-
[[ ! -d "/nix" && "$rootfs" = "ro" ]] && err "please test this on the latest focal development update"
8887
if ! check_cmd nix; then
8988
sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --no-daemon --no-channel-add;
9089
. $HOME/.nix-profile/etc/profile.d/nix.sh
@@ -102,10 +101,12 @@ function setup_home-manager (){
102101
function setup() {
103102
check_path;
104103
rootfstat=$(rorw);
104+
nixdirstat=$(rwnix);
105105
lsbstat=$(lsb_release -is);
106106
variant=$(osvariant)
107107
if [[ "$lsbstat" = "Ubuntu" ]] && [[ "$variant" == "Touch" ]];
108108
then
109+
if [[ ! "$nixdirstat" = "rw" ]]; then err "This version of $lsbstat $variant is not supported"; fi
109110
if ! check_cmd nix; then pkgsetup; fi
110111
if ! check_cmd nix; then setup_curlxz; fi
111112
elif [[ "$rootfstat" = "rw" ]];

0 commit comments

Comments
 (0)