Reduce locales and disable docs on small systems
This commit is contained in:
parent
6a114a6b7f
commit
1437601d5a
|
@ -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;
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue