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 =
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
./work.nix
|
||||
];
|
||||
|
||||
# Latest kernel
|
||||
|
@ -29,6 +28,11 @@
|
|||
options = "--delete-older-than 1w";
|
||||
};
|
||||
|
||||
swapDevices = [ {
|
||||
device = "/var/lib/swapfile";
|
||||
size = 16*1024;
|
||||
} ];
|
||||
|
||||
zramSwap.enable = true;
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue