Add swap file and minor cleanup
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
# Kernel configuration
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
# TODO Add resume_offset
|
||||
kernelParams = [ "zfs.zfs_arc_max=536870912" ];
|
||||
kernelModules = [ "i915" "acpi_call" ];
|
||||
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
||||
@@ -64,6 +65,10 @@
|
||||
# Enable the TLP daemon
|
||||
services.tlp.enable = true;
|
||||
|
||||
# Add a swap file and resume from it
|
||||
swapDevices = [ { device = "/swap"; size = 8192; } ];
|
||||
boot.resumeDevice = "/swap";
|
||||
|
||||
# Import other configuration modules
|
||||
imports = [
|
||||
./modules/software.nix
|
||||
|
||||
Reference in New Issue
Block a user