mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 18:30:46 +02:00
17 lines
252 B
Nix
17 lines
252 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
pkgs-unstable,
|
|
libs,
|
|
inputs,
|
|
...
|
|
}: {
|
|
# i found swap necessary when running nixpkgs review
|
|
swapDevices = [{
|
|
device = "/swapfile";
|
|
size = 16384; # 16 GB
|
|
}
|
|
];
|
|
boot.kernel.sysctl."vm.swappiness" = 10;
|
|
}
|