dregil: Disable kernel protection to allow hibernation

This commit is contained in:
Alexander Kobjolke 2023-03-15 21:17:25 +01:00
parent 808f23e20c
commit fcc7e04c7d

View file

@ -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.