mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-09-10 03:51:46 +02:00
fix: use valid shoukei logind keys
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
{ ... }:
|
||||
{
|
||||
lidSwitch = "suspend";
|
||||
lidSwitchExternalPower = "suspend";
|
||||
lidSwitchDocked = "ignore";
|
||||
powerKey = "suspend";
|
||||
powerKeyLongPress = "poweroff";
|
||||
|
||||
oldLowercaseKeysAbsent = true;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{ 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);
|
||||
}
|
||||
Reference in New Issue
Block a user