Security - root password entered with every command

i have this as /etc/nixos/file.nix

i then have it inculed in /etc/nix/configuration.nix