mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 11:14:02 -06:00
adding swap
This commit is contained in:
parent
a35814a862
commit
d8847a56a7
1 changed files with 5 additions and 1 deletions
|
@ -4,7 +4,6 @@
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./work.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Latest kernel
|
# Latest kernel
|
||||||
|
@ -29,6 +28,11 @@
|
||||||
options = "--delete-older-than 1w";
|
options = "--delete-older-than 1w";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
swapDevices = [ {
|
||||||
|
device = "/var/lib/swapfile";
|
||||||
|
size = 16*1024;
|
||||||
|
} ];
|
||||||
|
|
||||||
zramSwap.enable = true;
|
zramSwap.enable = true;
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue