Reduce locales and disable docs on small systems
This commit is contained in:
parent
6a114a6b7f
commit
1437601d5a
|
@ -58,7 +58,8 @@ in
|
||||||
./wireguard
|
./wireguard
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
config = lib.mkMerge [
|
||||||
|
{
|
||||||
# Essential system tools
|
# Essential system tools
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
git
|
git
|
||||||
|
@ -139,5 +140,15 @@ in
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
email = "security@sbruder.de";
|
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