ZSwap/ZRam

This commit is contained in:
Aleksandr Lebedev 2025-03-19 22:50:39 +01:00
parent 8e04335e92
commit 7ce4f8e15f
4 changed files with 23 additions and 1 deletions

View file

@ -16,6 +16,10 @@
../../users/andrej
];
zramSwap = {
enable = true; # Hopefully? helps with freezing when using swap
};
services.zerotierone = {
enable = true;
joinNetworks = [

View file

@ -28,6 +28,10 @@
ladybird
#inputs.nix-gaming.packages.${pkgs.system}.star-citizen
];
zramSwap = {
enable = true; # Hopefully? helps with freezing when using swap
};
services.zerotierone = {
enable = true;
joinNetworks = [

View file

@ -29,6 +29,15 @@
unstable-pkgs.mcpelauncher-ui-qt
];
boot = {
kernelParams = [
"zswap.enabled=1"
"zswap.compressor=lzo"
"zswap.zpool=zsmalloc"
"zswap.max_pool_percent=50"
];
};
services.zerotierone = {
enable = true;
joinNetworks = [

View file

@ -40,7 +40,12 @@
#options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [ ];
swapDevices = [
{
device = "/persist/swapfile";
size = 16*1024;
}
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's