All checks were successful
		
		
	
	/ check (push) Successful in 1m40s
				
			Based on6b71b580de/bin/timerand6b71b580de/bin/_timer.
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			370 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			370 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { pkgs }:
 | |
| 
 | |
| pkgs.writeShellApplication {
 | |
|   name = "timer";
 | |
| 
 | |
|   runtimeInputs = with pkgs; [
 | |
|     _timer
 | |
|     coreutils
 | |
|     systemdMinimal
 | |
|   ];
 | |
| 
 | |
|   text = ''
 | |
|     mins=$1
 | |
|     message="''${2:-}"
 | |
| 
 | |
|     nohup _timer "$mins" "$message" &> /dev/null &
 | |
| 
 | |
|     echo "timer started for $mins min"
 | |
|     echo "timer started for $mins min, message: '$message'" | systemd-cat -t timer
 | |
|   '';
 | |
| }
 |