enable hibernation on zfs

This commit is contained in:
Dmitriy Kholkin 2022-10-21 14:00:16 +03:00
parent a387344cb0
commit 1cadcda144
2 changed files with 6 additions and 2 deletions

View File

@ -28,6 +28,8 @@
deviceSpecific.enableVirtualisation = true;
deviceSpecific.wireguard.enable = true;
boot.zfs.forceImportAll = lib.mkForce false;
hardware.video.hidpi.enable = lib.mkForce false;
hardware.firmware = [ pkgs.rtl8761b-firmware ];

View File

@ -56,10 +56,12 @@
swapDevices = [
{
device = "/dev/disk/by-partuuid/7ffa34d9-862b-42ff-a649-da54f7b8fbf0";
randomEncryption.enable = true;
randomEncryption.enable = false;
}
];
# 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
# still possible to use this option, but it's recommended to use it in conjunction
@ -74,5 +76,5 @@
networking.hostId = "a32bd2dc";
boot.zfs.devNodes = "/dev/disk/by-partuuid/4c6b8cfb-9643-4ff7-961e-89b097328e0e";
boot.supportedFilesystems = [ "zfs" ];
boot.kernelParams = [ "zfs.zfs_arc_max=12884901888" "nohibernate" ];
boot.kernelParams = [ "zfs.zfs_arc_max=12884901888" ];
}