From ae01ed16b80d591f1015ca95f14a7ac569ca8dc3 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Tue, 6 Sep 2022 11:32:29 +0200 Subject: [PATCH] dumpyourvms: make use of new option pub-solar... core.hibernation to configure hibernation --- hosts/dumpyourvms/dumpyourvms.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/hosts/dumpyourvms/dumpyourvms.nix b/hosts/dumpyourvms/dumpyourvms.nix index 78dc19ce..2e608582 100644 --- a/hosts/dumpyourvms/dumpyourvms.nix +++ b/hosts/dumpyourvms/dumpyourvms.nix @@ -16,14 +16,21 @@ in owner = "teutat3s"; }; - pub-solar.virtualisation.enable = true; - pub-solar.audio.mopidy.enable = lib.mkForce false; + pub-solar = { + audio.mopidy.enable = lib.mkForce false; + core.hibernation = { + enable = true; + resumeDevice = "/dev/mapper/cryptroot"; + resumeOffset = 47366144; + }; + virtualisation.enable = true; + }; # fix backlight for keyboard and brightness, adjust function key binding, # intel_pstate for cpu schedutil, resume offset for swapfile, disable amdgpu driver - boot.kernelParams = [ "acpi_backlight=video" "hid_apple.fnmode=2" "intel_pstate=passive" "resume_offset=47366144" ]; + boot.kernelParams = [ "acpi_backlight=video" "hid_apple.fnmode=2" "intel_pstate=passive" ]; boot.loader.efi.canTouchEfiVariables = true; - boot.resumeDevice = "/dev/mapper/cryptroot"; + #boot.resumeDevice = "/dev/mapper/cryptroot"; boot.binfmt.emulatedSystems = [ "aarch64-linux" ];