move swapfiles to hardware-configuration.nix

This commit is contained in:
Mohamed Chrayed 2024-08-04 19:54:59 +02:00
parent 0500ef1321
commit 8353a2bb00
2 changed files with 4 additions and 5 deletions

View File

@ -24,7 +24,10 @@
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [ ];
swapDevices = [ {
device = "/var/lib/swapfile";
size = 16*1024;
}];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's

View File

@ -13,10 +13,6 @@
pulse.enable = true;
};
services.libinput.enable = false;
swapDevices = [ {
device = "/var/lib/swapfile";
size = 16*1024;
} ];
# GPU Overcloking
environment.systemPackages = with pkgs; [
lact