ZSwap/ZRam
This commit is contained in:
parent
8e04335e92
commit
7ce4f8e15f
4 changed files with 23 additions and 1 deletions
|
|
@ -16,6 +16,10 @@
|
|||
../../users/andrej
|
||||
];
|
||||
|
||||
zramSwap = {
|
||||
enable = true; # Hopefully? helps with freezing when using swap
|
||||
};
|
||||
|
||||
services.zerotierone = {
|
||||
enable = true;
|
||||
joinNetworks = [
|
||||
|
|
|
|||
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue