fix nixos-edit with no xorg
This commit is contained in:
parent
50666f356d
commit
12bffa270e
1 changed files with 6 additions and 0 deletions
|
@ -12,8 +12,14 @@ pkgs.writeShellScriptBin "nixos-edit" ''
|
|||
passwd tudbut || exit 1
|
||||
fi
|
||||
sleep 2
|
||||
echo please make sure xorg is running
|
||||
echo -n enter when ready
|
||||
read
|
||||
exec sudo -u tudbut nixos-edit init || exit 1
|
||||
fi
|
||||
if [ "$DISPLAY" = "" ] ; then
|
||||
export DISPLAY=:0
|
||||
fi
|
||||
sudo chown -R tudbut: /etc/nixos
|
||||
echo dir setup done
|
||||
echo "> setting up ssh"
|
||||
|
|
Loading…
Add table
Reference in a new issue