flake: add nix-output-monitor
This commit is contained in:
		
							parent
							
								
									dc6ecd34b6
								
							
						
					
					
						commit
						385fb59418
					
				
					 2 changed files with 21 additions and 6 deletions
				
			
		
							
								
								
									
										25
									
								
								switch
									
										
									
									
									
								
							
							
						
						
									
										25
									
								
								switch
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,12 +1,25 @@
 | 
			
		|||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
set -euo pipefail
 | 
			
		||||
 | 
			
		||||
nix fmt
 | 
			
		||||
 | 
			
		||||
git --no-pager diff
 | 
			
		||||
 | 
			
		||||
nixos-rebuild \
 | 
			
		||||
    switch \
 | 
			
		||||
    --use-remote-sudo \
 | 
			
		||||
    --print-build-logs \
 | 
			
		||||
    --flake .# \
 | 
			
		||||
    "$@"
 | 
			
		||||
run() {
 | 
			
		||||
    nixos-rebuild \
 | 
			
		||||
        switch \
 | 
			
		||||
        --use-remote-sudo \
 | 
			
		||||
        --print-build-logs \
 | 
			
		||||
        --flake .# \
 | 
			
		||||
        "$@"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
if which nom >/dev/null; then
 | 
			
		||||
    run --verbose \
 | 
			
		||||
        --log-format internal-json \
 | 
			
		||||
        "$@" \
 | 
			
		||||
    |& nom --json
 | 
			
		||||
else
 | 
			
		||||
    run "$@"
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -44,6 +44,8 @@
 | 
			
		|||
    usbutils
 | 
			
		||||
    # dracula-theme # gtk theme
 | 
			
		||||
    adwaita-icon-theme # default gnome cursors
 | 
			
		||||
 | 
			
		||||
    nix-output-monitor
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  services.geoclue2.enable = true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue