From 64ef37badda91e228bd0995db8670f7ea6a5943e Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 20 Jan 2021 16:27:51 +0100 Subject: [PATCH] Move global lidSwitchDocked setting to nunotaba --- machines/nunotaba/hardware-configuration.nix | 4 ++++ modules/gui.nix | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/machines/nunotaba/hardware-configuration.nix b/machines/nunotaba/hardware-configuration.nix index b4728a0..9c12924 100644 --- a/machines/nunotaba/hardware-configuration.nix +++ b/machines/nunotaba/hardware-configuration.nix @@ -40,4 +40,8 @@ ]; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + + # Most of the time I want to use both screens at the same time and suspend it + # regularily by closing the lid + services.logind.lidSwitchDocked = config.services.logind.lidSwitch; } diff --git a/modules/gui.nix b/modules/gui.nix index 08a71f1..8c15987 100644 --- a/modules/gui.nix +++ b/modules/gui.nix @@ -10,6 +10,4 @@ lib.mkIf config.sbruder.gui.enable { # steam (and other high quality software) still ships 32 bit binaries hardware.opengl.driSupport32Bit = lib.mkIf pkgs.stdenv.isx86_64 true; - - services.logind.lidSwitchDocked = config.services.logind.lidSwitch; }