try to configure swapfile
This commit is contained in:
parent
bb92f8e28d
commit
91d54bd9ac
2 changed files with 13 additions and 0 deletions
hosts/home/hardware-configuration
|
@ -3,6 +3,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./generated.nix # Include the results of the hardware scan.
|
./generated.nix # Include the results of the hardware scan.
|
||||||
|
./manual.nix
|
||||||
./nfs.nix
|
./nfs.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
12
hosts/home/hardware-configuration/manual.nix
Normal file
12
hosts/home/hardware-configuration/manual.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
swapDevices = [
|
||||||
|
{
|
||||||
|
device = "/var/lib/swapfile";
|
||||||
|
size = 64 * 1024;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.kernelParams = [
|
||||||
|
"resume=UUID=969c5f68-631d-4429-b81b-0d81e050449b"
|
||||||
|
];
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue