Add slim
This commit is contained in:
parent
902c3aa0c1
commit
ce61b04e3e
|
@ -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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue