Disco: Make upgrade sleep inhibit work
This commit is contained in:
		
							parent
							
								
									451605c50d
								
							
						
					
					
						commit
						670433245b
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -165,9 +165,12 @@ | |||
|         serviceConfig = { | ||||
|             # Workaround for https://github.com/systemd/systemd/issues/14045 | ||||
|             ExecStartPre = "${pkgs.coreutils}/bin/sleep 10s"; | ||||
|             ExecStart = lib.mkForce "systemd-inhibit --what=sleep --mode=delay --why='NixOS upgrade' ${updateScript}/bin/nixos-upgrade"; | ||||
|             ExecStart = lib.mkForce "systemd-inhibit --what=sleep:handle-lid-switch --why='NixOS upgrade' ${updateScript}/bin/nixos-upgrade"; | ||||
|         }; | ||||
|     }; | ||||
|     services.logind.extraConfig = '' | ||||
|         LidSwitchIgnoreInhibited = no | ||||
|     ''; | ||||
| 
 | ||||
|     # This value determines the NixOS release from which the default | ||||
|     # settings for stateful data, like file locations and database versions | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue