fix: use suspend and hibernate

This commit is contained in:
Moritz Böhme 2023-05-14 15:27:25 +02:00
parent 13883e7178
commit 3a0d4845b0
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
2 changed files with 5 additions and 16 deletions

View file

@ -29,6 +29,7 @@
xserver.libinput.enable = true; xserver.libinput.enable = true;
xserver.libinput.touchpad.disableWhileTyping = true; xserver.libinput.touchpad.disableWhileTyping = true;
printing.enable = true; printing.enable = true;
logind.lidSwitch = "suspend-and-hibernate";
}; };
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
@ -101,16 +102,6 @@
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
}; };
programs.ssh.extraConfig = ''
Host builder
Hostname 192.168.0.14
Port 22
User moritz
IdentitiesOnly yes
IdentityFile /etc/ssh/ssh_host_ed25519_key
'';
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave

View file

@ -118,12 +118,10 @@ in
} }
] ++ optional ] ++ optional
(!cfg.nvidiaSupport) # TODO https://github.com/hyprwm/Hyprland/issues/1728 (!cfg.nvidiaSupport) # TODO https://github.com/hyprwm/Hyprland/issues/1728
[
{ {
timeout = 30 * 60; timeout = 30 * 60;
command = "${pkgs.systemd}/bin/systemctl suspend-then-hibernate"; command = "${pkgs.systemd}/bin/systemctl suspend-and-hibernate";
} };
];
systemdTarget = "hyprland-session.target"; systemdTarget = "hyprland-session.target";
}; };
}; };