Configure sddm language

This commit is contained in:
Manuel Thalmann 2024-05-07 22:31:56 +02:00
parent 47802f7450
commit 88b8bdc16b
2 changed files with 15 additions and 0 deletions

View file

@ -3,6 +3,7 @@
./modules/custom-build-vm.nix ./modules/custom-build-vm.nix
./modules/custom-sops-nix.nix ./modules/custom-sops-nix.nix
./modules/my-users.nix ./modules/my-users.nix
./modules/sddm.nix
]; ];
config = { config = {

14
lib/modules/sddm.nix Normal file
View file

@ -0,0 +1,14 @@
{ config, lib, ... }: {
config = {
services.displayManager.sddm = lib.mkIf config.services.displayManager.sddm.wayland.enable {
settings.General.GreeterEnvironment = (
lib.concatStringsSep " " (
let
localeConf = config.i18n.extraLocaleSettings;
in
builtins.map
(name: "${name}=${localeConf.${name}}")
(builtins.attrNames localeConf)));
};
};
}