From 0dd51b9e879ea81da59c66835ee1a4c9465c7a4e Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Fri, 3 Mar 2023 13:36:30 +0300 Subject: [PATCH] machines/home: ignore handle power key --- machines/home/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/machines/home/default.nix b/machines/home/default.nix index c42e23b..286548b 100644 --- a/machines/home/default.nix +++ b/machines/home/default.nix @@ -76,6 +76,11 @@ ]; }; + services.logind.extraConfig = '' + # don’t shutdown when power button is short-pressed + HandlePowerKey=ignore + ''; + # Enable the Docker virtualisation.docker.enable = true;