fix nixos-edit init as root

This commit is contained in:
Daniella / Tove 2024-10-19 03:07:57 +02:00
parent 9b989892a4
commit 50666f356d

View file

@ -4,7 +4,7 @@ pkgs.writeShellScriptBin "nixos-edit" ''
#!/bin/sh
if [ "$1" = "init" ] ; then
if [ "$(whoami)" != root ] ; then
if [ "$(whoami)" = root ] ; then
echo "re-executing as tudbut"
echo -n "set password for tudbut? (Y/n) "
read yn