mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-09-09 19:32:05 +02:00
19 lines
588 B
Nix
19 lines
588 B
Nix
{ outputs, ... }:
|
|
let
|
|
login = outputs.nixosConfigurations.shoukei-niri.config.services.logind.settings.Login;
|
|
in
|
|
{
|
|
lidSwitch = login.HandleLidSwitch or null;
|
|
lidSwitchExternalPower = login.HandleLidSwitchExternalPower or null;
|
|
lidSwitchDocked = login.HandleLidSwitchDocked or null;
|
|
powerKey = login.HandlePowerKey or null;
|
|
powerKeyLongPress = login.HandlePowerKeyLongPress or null;
|
|
|
|
oldLowercaseKeysAbsent =
|
|
!(login ? lidSwitch)
|
|
&& !(login ? lidSwitchExternalPower)
|
|
&& !(login ? lidSwitchDocked)
|
|
&& !(login ? powerKey)
|
|
&& !(login ? powerKeyLongPress);
|
|
}
|