~ruther/nixos-config

dc8fe5c7d95076b168bf63410c92cfd812c39d29 — Frantisek Bohacek 11 months ago 5ba54fb
fix: do not suspend when GUI quits
1 files changed, 7 insertions(+), 1 deletions(-)

M nixos/hosts/laptop-phobos/default.nix
M nixos/hosts/laptop-phobos/default.nix => nixos/hosts/laptop-phobos/default.nix +7 -1
@@ 96,8 96,14 @@
    partOf = lib.mkForce [ "xorg-wm-session.target" ];
    wantedBy = lib.mkForce [ "xorg-wm-session.target" ];
  };

  services = {
    logind.lidSwitch = "suspend";           # suspend on lid close
    logind.lidSwitch = "suspend";                # suspend on lid close
    logind.lidSwitchDocked = "ignore";           # suspend on lid close
    # TODO: this is here because when the laptop is docked, and Wayland/X session
    # ends, it is for a brief moment not in docked state, which suspends it.
    # Since it is also on external power, this effectively means it will be ignored
    logind.lidSwitchExternalPower = "ignore";    # suspend on lid close
    libinput = {
      enable = true;
      touchpad = {

Do not follow this link