nixos: workaround for nm-wait-online hanging during nixos switch
This commit is contained in:
		
							parent
							
								
									0ca0475dd4
								
							
						
					
					
						commit
						53894b2854
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -48,6 +48,15 @@
 | 
			
		|||
 | 
			
		||||
  services.geoclue2.enable = true;
 | 
			
		||||
 | 
			
		||||
  # Workaround for nm-wait-online hanging??
 | 
			
		||||
  # Ref: https://github.com/NixOS/nixpkgs/issues/180175
 | 
			
		||||
  systemd.services.NetworkManager-wait-online = {
 | 
			
		||||
    serviceConfig.ExecStart = [
 | 
			
		||||
      ""
 | 
			
		||||
      "${pkgs.networkmanager}/bin/nm-online -q"
 | 
			
		||||
    ];
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  systemd.extraConfig = ''
 | 
			
		||||
    DefaultTimeoutStopSec=10s
 | 
			
		||||
  '';
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue