diff --git a/hosts/Disco.nix b/hosts/Disco.nix index 75c8fa9..09c5437 100644 --- a/hosts/Disco.nix +++ b/hosts/Disco.nix @@ -165,9 +165,12 @@ serviceConfig = { # Workaround for https://github.com/systemd/systemd/issues/14045 ExecStartPre = "${pkgs.coreutils}/bin/sleep 10s"; - ExecStart = lib.mkForce "systemd-inhibit --what=sleep --mode=delay --why='NixOS upgrade' ${updateScript}/bin/nixos-upgrade"; + ExecStart = lib.mkForce "systemd-inhibit --what=sleep:handle-lid-switch --why='NixOS upgrade' ${updateScript}/bin/nixos-upgrade"; }; }; + services.logind.extraConfig = '' + LidSwitchIgnoreInhibited = no + ''; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions