3
modules/shared/nixos/misc/default.nix
Normal file
3
modules/shared/nixos/misc/default.nix
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
imports = [./slim.nix ./zram.nix];
|
||||
}
|
20
modules/shared/nixos/misc/slim.nix
Normal file
20
modules/shared/nixos/misc/slim.nix
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
# taken from https://github.com/NuschtOS/nixos-modules/blob/main/modules/slim.nix
|
||||
documentation = {
|
||||
# html docs and info are not required, man pages are enough
|
||||
doc.enable = false;
|
||||
info.enable = false;
|
||||
};
|
||||
|
||||
# environment.defaultPackages = lib.mkForce [];
|
||||
|
||||
# programs.thunderbird.package = pkgs.thunderbird.override {cfg.speechSynthesisSupport = false;};
|
||||
|
||||
# during testing only 550K-650K of the tmpfs where used
|
||||
security.wrapperDirSize = "10M";
|
||||
|
||||
services = {
|
||||
orca.enable = false; # requires speechd
|
||||
speechd.enable = false; # voice files are big and fat
|
||||
};
|
||||
}
|
8
modules/shared/nixos/misc/zram.nix
Normal file
8
modules/shared/nixos/misc/zram.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
algorithm = "zstd";
|
||||
memoryPercent = 25;
|
||||
priority = 5;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user