From 88b8bdc16b79041a9514aaa78d5fd5f0324b18d6 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 7 May 2024 22:31:56 +0200 Subject: [PATCH] Configure `sddm` language --- lib/configuration.nix | 1 + lib/modules/sddm.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 lib/modules/sddm.nix 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))); + }; + }; +}