From fcc7e04c7d62834222fa73c76646195da5a7d2ae Mon Sep 17 00:00:00 2001 From: Alexander Kobjolke Date: Wed, 15 Mar 2023 21:17:25 +0100 Subject: [PATCH] dregil: Disable kernel protection to allow hibernation --- hosts/dregil/configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/dregil/configuration.nix b/hosts/dregil/configuration.nix index 7069949..f037888 100644 --- a/hosts/dregil/configuration.nix +++ b/hosts/dregil/configuration.nix @@ -2,7 +2,7 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). -{ inputs, config, pkgs, ... }: +{ inputs, config, pkgs, lib, ... }: let nvidia-offload = pkgs.writeShellScriptBin "nvidia-offload" '' export __NV_PRIME_RENDER_OFFLOAD=1 @@ -24,6 +24,9 @@ in boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + # do not protect the kernel image to allow hibernation + security.protectKernelImage = lib.mkForce false; + networking.hostName = "dregil"; # Define your hostname. # Pick only one of the below networking options. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.