aboutsummaryrefslogblamecommitdiff
path: root/justfile
blob: b069c5290c68ed8842641aaa655826555f18cfae (plain) (tree)
1
2
3
4
5
6
7
8
9
                     


                                           
                                                     
             
                                                     
 
                                               
              
                                                      
 
                                                      


                              
 
                              

               

              
                                                                                                                                       

               
                                                                                                                                        
# update dependencies
update-deps:
	nix flake update --commit-lock-file

# build (and only build) the configuration for darwin
build-darwin:
	darwin-rebuild build --flake .#$(hostname -s)

# build and switch the configuration for darwin
switch-darwin:
	darwin-rebuild switch --flake .#$(hostname -s)

# a simple check to ensure the nix configuration is OK
test-nix:
	nix flake check
	nix develop -c echo OK

# run various formatting tools
fmt:
	nix fmt

build-wildcat:
	nixos-rebuild build --target-host fcuny.net --build-host fcuny.net --fast --use-remote-sudo --use-substitutes --flake .#wildcat

switch-wildcat:
	nixos-rebuild switch --target-host fcuny.net --build-host fcuny.net --fast --use-remote-sudo --use-substitutes --flake .#wildcat