monolith: allow hibernation
This commit is contained in:
		
							parent
							
								
									15397a871a
								
							
						
					
					
						commit
						a2ca5e0042
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -17,8 +17,12 @@ in
 | 
			
		|||
  ];
 | 
			
		||||
  boot.kernelParams = [
 | 
			
		||||
    "video=DP-1:1920x1080@144"
 | 
			
		||||
    # hibernation
 | 
			
		||||
    "resume=LABEL=BTRFS_ROOT" # findmnt -o LABEL --noheadings /swap/
 | 
			
		||||
    "resume_offset=36709632" # btrfs inspect-internal map-swapfile -r /swap/swapfile
 | 
			
		||||
  ];
 | 
			
		||||
  systemd.sleep.extraConfig = ''
 | 
			
		||||
    HibernateDelaySec=30s
 | 
			
		||||
    SuspendState=mem
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue