diff --git a/lib/configuration.nix b/lib/configuration.nix index 78c8b6d..749995a 100644 --- a/lib/configuration.nix +++ b/lib/configuration.nix @@ -3,6 +3,7 @@ ./modules/custom-build-vm.nix ./modules/custom-sops-nix.nix ./modules/my-users.nix + ./modules/sddm.nix ]; config = { diff --git a/lib/modules/sddm.nix b/lib/modules/sddm.nix new file mode 100644 index 0000000..fbd7292 --- /dev/null +++ b/lib/modules/sddm.nix @@ -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))); + }; + }; +}