Adapt locale configuration to new NixOS defaults

This commit is contained in:
Simon Bruder 2022-12-10 14:51:07 +01:00
parent f81a86235d
commit a445953d46
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, options, pkgs, ... }:
{ {
# Options that affect multiple modules # Options that affect multiple modules
@ -122,17 +122,15 @@
# Allow users to set allow_other for fuse mounts # Allow users to set allow_other for fuse mounts
programs.fuse.userAllowOther = true; 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 { (lib.mkIf config.sbruder.full {
services.fwupd.enable = true; services.fwupd.enable = true;
}) })
(lib.mkIf (!config.sbruder.full) { (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; documentation.enable = lib.mkDefault false;
}) })
]; ];