From 214673bb0ed8e08038b51a714ea9cd6d2cc4b7e7 Mon Sep 17 00:00:00 2001 From: Frantisek Bohacek Date: Wed, 15 May 2024 22:17:07 +0200 Subject: [PATCH] feat: enable power profiles daemon --- nixos/hosts/laptop-phobos/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/hosts/laptop-phobos/default.nix b/nixos/hosts/laptop-phobos/default.nix index 42891d3..21e9610 100644 --- a/nixos/hosts/laptop-phobos/default.nix +++ b/nixos/hosts/laptop-phobos/default.nix @@ -102,7 +102,10 @@ wantedBy = lib.mkForce [ "xorg-wm-session.target" ]; }; + systemd.services."NetworkManager-wait-online".enable = false; + services = { + power-profiles-daemon.enable = true; 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 -- 2.48.1