Enable swap file
This commit is contained in:
parent
2f42b0dbc6
commit
cf539890e5
@ -9,6 +9,9 @@
|
|||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
||||||
|
# Swap
|
||||||
|
../../modules/nixos/swap.nix
|
||||||
|
|
||||||
# NVIDIA setup
|
# NVIDIA setup
|
||||||
../../modules/nixos/nvidia.nix
|
../../modules/nixos/nvidia.nix
|
||||||
|
|
||||||
|
|||||||
8
modules/nixos/swap.nix
Normal file
8
modules/nixos/swap.nix
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
swapDevices = [{
|
||||||
|
device = "/var/lib/swapfile";
|
||||||
|
seize = 20*1024;
|
||||||
|
}];
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user