Remove hibernation support
This commit is contained in:
parent
99b84bd224
commit
92fd1031b4
3 changed files with 0 additions and 29 deletions
|
@ -23,7 +23,6 @@
|
||||||
amdLaptop.enable = true;
|
amdLaptop.enable = true;
|
||||||
monitors.enable = true;
|
monitors.enable = true;
|
||||||
};
|
};
|
||||||
platform.hibernate.enable = true;
|
|
||||||
services = {
|
services = {
|
||||||
nixCacheClient = {
|
nixCacheClient = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -33,10 +32,6 @@
|
||||||
};
|
};
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
|
|
||||||
boot = {
|
|
||||||
resumeDevice = "/dev/mapper/luks-f6e1979b-0dee-4ee9-8170-10490019854b";
|
|
||||||
kernelParams = [ "resume_offset=44537856" ];
|
|
||||||
};
|
|
||||||
services.xserver.displayManager.setupCommands = ''
|
services.xserver.displayManager.setupCommands = ''
|
||||||
${pkgs.xorg.xrandr}/bin/xrandr --output DP-1 --auto --pos 0x0 --primary --output eDP-1 --auto --pos 3840x360
|
${pkgs.xorg.xrandr}/bin/xrandr --output DP-1 --auto --pos 0x0 --primary --output eDP-1 --auto --pos 3840x360
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -85,7 +85,6 @@ pkgs.writeText "i3-conf" ''
|
||||||
mode "$mode_system" {
|
mode "$mode_system" {
|
||||||
bindsym l exec --no-startup-id i3lock, mode "default"
|
bindsym l exec --no-startup-id i3lock, mode "default"
|
||||||
bindsym s exec --no-startup-id "i3lock; systemctl suspend", 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 r exec --no-startup-id systemctl reboot, mode "default"
|
||||||
bindsym Shift+s exec --no-startup-id systemctl poweroff, mode "default"
|
bindsym Shift+s exec --no-startup-id systemctl poweroff, mode "default"
|
||||||
bindsym Return mode "default"
|
bindsym Return mode "default"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue