From 6f927ad62fc1e7cad6bdcbbae6198b4d1296be0e Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Thu, 3 Oct 2024 11:59:29 +0200 Subject: [PATCH] loki: Make logind ignore power button, make suspend key hibernate the system --- machines/loki/configuration.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/machines/loki/configuration.nix b/machines/loki/configuration.nix index 5fe664c..67377de 100644 --- a/machines/loki/configuration.nix +++ b/machines/loki/configuration.nix @@ -380,6 +380,17 @@ ''; }; + logind = { + hibernateKey = "ignore"; + powerKey = "ignore"; + rebootKey = "ignore"; + suspendKey = "hibernate"; + hibernateKeyLongPress = "ignore"; + powerKeyLongPress = "ignore"; + rebootKeyLongPress = "ignore"; + suspendKeyLongPress = "ignore"; + }; + openssh.enable = true; colord.enable = true;