Enable swap file

This commit is contained in:
Isshi0417 2024-07-04 20:51:53 +09:00
parent 2f42b0dbc6
commit cf539890e5
2 changed files with 11 additions and 0 deletions

View File

@ -9,6 +9,9 @@
[ # Include the results of the hardware scan.
./hardware-configuration.nix
# Swap
../../modules/nixos/swap.nix
# NVIDIA setup
../../modules/nixos/nvidia.nix

8
modules/nixos/swap.nix Normal file
View File

@ -0,0 +1,8 @@
{ pkgs, ... }:
{
swapDevices = [{
device = "/var/lib/swapfile";
seize = 20*1024;
}];
}