Remove hibernation support

This commit is contained in:
Vili Sinervä 2025-07-25 13:12:54 +03:00
parent 99b84bd224
commit 92fd1031b4
Signed by: Vili Sinervä
SSH key fingerprint: SHA256:FladqYjaE4scJY3Hi+gnShZ6ygnTJgixy0I6BAoHyos
3 changed files with 0 additions and 29 deletions

View file

@ -23,7 +23,6 @@
amdLaptop.enable = true;
monitors.enable = true;
};
platform.hibernate.enable = true;
services = {
nixCacheClient = {
enable = true;
@ -33,10 +32,6 @@
};
system.stateVersion = "23.11";
boot = {
resumeDevice = "/dev/mapper/luks-f6e1979b-0dee-4ee9-8170-10490019854b";
kernelParams = [ "resume_offset=44537856" ];
};
services.xserver.displayManager.setupCommands = ''
${pkgs.xorg.xrandr}/bin/xrandr --output DP-1 --auto --pos 0x0 --primary --output eDP-1 --auto --pos 3840x360
'';

View file

@ -1,23 +0,0 @@
{ config, lib, ... }:
let
cfg = config.custom.platform.hibernate;
in
{
options.custom.platform.hibernate.enable = lib.mkOption {
type = lib.types.bool;
default = false;
};
config = lib.mkIf cfg.enable {
swapDevices = [
{
device = "/var/lib/swapfile";
size = 16 * 1024;
}
];
boot = {
resumeDevice = lib.mkDefault "/dev/mapper/nixos";
};
};
}

View file

@ -85,7 +85,6 @@ pkgs.writeText "i3-conf" ''
mode "$mode_system" {
bindsym l exec --no-startup-id i3lock, mode "default"
bindsym s exec --no-startup-id "i3lock; systemctl suspend", mode "default"
bindsym h exec --no-startup-id systemctl hibernate, mode "default"
bindsym r exec --no-startup-id systemctl reboot, mode "default"
bindsym Shift+s exec --no-startup-id systemctl poweroff, mode "default"
bindsym Return mode "default"