devel-su and handles environment changes better or
at least in a more familiar way.Use devel-su one last time for the following steps:
pkcon install sudo
visudo /etc/sudoers.d/01_defaultuser
And add the line
%defaultuser ALL=(ALL:ALL) ALL
[If you prefer to use nano for editing, set the EDITOR environment variable accordingly.]