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