The order of rules in pg_hba.conf matters.

Trying to connect to postgresql database with a standard user fails with psql: FATAL: Peer authentication failed fr user "user1".

The second line of pg_hba.conf makes your connection attempt fail:

1
local   all     all     peer

The order of rules matter. If the first one that matches the access method, username, database name and source IP range fails, there will be no second attempt. So either remove this line, your place your rule above this one.