Perl: warning: Setting locale failed

Hello! I’m getting the following error message if I’m running sudo nixos-rebuild switch --flake .#pc on my dotfiles repository: GitHub - TornaxO7/dotfiles: My config

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_ADDRESS = "de_DE.UTF-8",
	LC_NAME = "de_DE.UTF-8",
	LC_MONETARY = "de_DE.UTF-8",
	LC_PAPER = "de_DE.UTF-8",
	LC_IDENTIFICATION = "de_DE.UTF-8",
	LC_TELEPHONE = "de_DE.UTF-8",
	LC_MEASUREMENT = "de_DE.UTF-8",
	LC_TIME = "de_DE.UTF-8",
	LC_NUMERIC = "de_DE.UTF-8",
	LANG = "en"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
activating the configuration...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_ADDRESS = "de_DE.UTF-8",
	LC_NAME = "de_DE.UTF-8",
	LC_MONETARY = "de_DE.UTF-8",
	LC_PAPER = "de_DE.UTF-8",
	LC_IDENTIFICATION = "de_DE.UTF-8",
	LC_TELEPHONE = "de_DE.UTF-8",
	LC_MEASUREMENT = "de_DE.UTF-8",
	LC_TIME = "de_DE.UTF-8",
	LC_NUMERIC = "de_DE.UTF-8",
	LANG = "en"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
setting up /etc...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_ADDRESS = "de_DE.UTF-8",
	LC_NAME = "de_DE.UTF-8",
	LC_MONETARY = "de_DE.UTF-8",
	LC_PAPER = "de_DE.UTF-8",
	LC_IDENTIFICATION = "de_DE.UTF-8",
	LC_TELEPHONE = "de_DE.UTF-8",
	LC_MEASUREMENT = "de_DE.UTF-8",
	LC_TIME = "de_DE.UTF-8",
	LC_NUMERIC = "de_DE.UTF-8",
	LANG = "en"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
reloading user units for tornax...
setting up tmpfiles

But as you can see here I’ve set i18n.

This is the output of the command locale:

LANG=en
LC_CTYPE="en"
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE="en"
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES="en"
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=

May I ask what I’m doing wrong?

Ok… that was a stupid mistake from me…

Setting

language.base = "en_US.UTF-8";

in my home-manager configs fixed it because I had

language.base = "en";

before…