Reduce locales and disable docs on small systems

This commit is contained in:
Simon Bruder 2021-02-05 15:36:51 +01:00
parent 6a114a6b7f
commit 1437601d5a
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -58,7 +58,8 @@ in
./wireguard
];
config = {
config = lib.mkMerge [
{
# Essential system tools
environment.systemPackages = with pkgs; [
git
@ -139,5 +140,15 @@ in
acceptTerms = true;
email = "security@sbruder.de";
};
};
}
(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;
})
];
}