From d1e6f1be184ecd552c1a71b6ba2a352cc52f2742 Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Sun, 16 Apr 2023 19:36:41 +0200 Subject: [PATCH] [Nix/Builder] Don't inhibit explicit sleep when rebuilding, only block automatic idle behavior and shutdown --- nix/nix.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/nix.nix b/nix/nix.nix index 0a897de..e8ce2c0 100644 --- a/nix/nix.nix +++ b/nix/nix.nix @@ -26,7 +26,7 @@ in system.build.nixos-rebuild = let nixos-rebuild = pkgs.nixos-rebuild.override { nix = config.nix.package.out; }; nixos-rebuild-inhibit = pkgs.writeShellScriptBin "nixos-rebuild" '' - exec ${config.systemd.package}/bin/systemd-inhibit --what=shutdown:sleep --mode=block \ + exec ${config.systemd.package}/bin/systemd-inhibit --what=idle:shutdown --mode=block \ --who="NixOS rebuild" \ --why="NixOS must finish rebuilding configuration or work would be lost." \ -- \