Skip to content

Commit

Permalink
fix(zram): move out of services
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Nov 1, 2023
1 parent ee0f27e commit 0b9fecc
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions modules/common/core/system/os/services/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ in {
./systemd.nix
inputs.vscode-server.nixosModules.default
];
services = {
# compress half of the ram to use as swap
# basically, get more memory per memory
zramSwap = {
enable = true;
algorithm = "zstd";
memoryPercent = 90; # defaults to 50
};

# compress half of the ram to use as swap
# basically, get more memory per memory
zramSwap = {
enable = true;
algorithm = "zstd";
memoryPercent = 90; # defaults to 50
};

services = {
# enable the vscode server
vscode-server.enable = config.modules.services.vscode-server.enable;
# monitor and control temparature
Expand Down

0 comments on commit 0b9fecc

Please sign in to comment.