diff --git a/modules/default.nix b/modules/default.nix index cd9ba17..e4ac5ea 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, options, pkgs, ... }: { # Options that affect multiple modules @@ -122,17 +122,15 @@ # Allow users to set allow_other for fuse mounts programs.fuse.userAllowOther = true; + + i18n.supportedLocales = (options.i18n.supportedLocales.default) ++ (lib.optionals config.sbruder.full [ + "de_DE.UTF-8/UTF-8" + ]); } (lib.mkIf config.sbruder.full { services.fwupd.enable = true; }) (lib.mkIf (!config.sbruder.full) { - # Adapted from nixpkgs/nixos/modules/profiles/minimal.nix - i18n.supportedLocales = map - (locale: locale + "/UTF-8") - ((lib.singleton config.i18n.defaultLocale) - ++ (lib.attrValues config.i18n.extraLocaleSettings)); - documentation.enable = lib.mkDefault false; }) ];