This commit is contained in:
Sandro - 2023-09-07 22:10:43 +02:00
parent 902c3aa0c1
commit ce61b04e3e
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 23 additions and 0 deletions

23
modules/slim.nix Normal file
View File

@ -0,0 +1,23 @@
{ config, lib, libS, ... }:
let
cfg = config.slim;
in
{
options.slim = {
enable = libS.mkOpinionatedOption "disable some usual rarely used things to slim down the system";
};
config = lib.mkIf cfg.enable {
documentation = {
# html docs and info are not required, man pages are enough
doc.enable = false;
info.enable = false;
};
environment.defaultPackages = lib.mkForce [ ];
# durring testing only 550K-650K of the tmpfs where used
security.wrapperDirSize = "10M";
};
}