diff --git a/nixos-edit.script.nix b/nixos-edit.script.nix index 44d3100..72c073e 100644 --- a/nixos-edit.script.nix +++ b/nixos-edit.script.nix @@ -15,7 +15,7 @@ pkgs.writeShellScriptBin "nixos-edit" '' echo please make sure xorg is running echo -n enter when ready read - exec sudo -u tudbut nixos-edit init || exit 1 + exec sudo -iu tudbut nixos-edit init || exit 1 fi if [ "$DISPLAY" = "" ] ; then export DISPLAY=:0