22
0
mirror of https://github.com/SuperSandro2000/nixos-modules.git synced 2024-05-28 20:10:47 +02:00
nixos-modules/modules/slim.nix
2023-09-08 01:24:28 +02:00

24 lines
526 B
Nix

{ 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";
};
}