|  |  | @ -1,5 +1,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | all: rebuild-switch |  |  |  | all: rebuild-switch | 
			
		
	
		
		
			
				
					
					|  |  |  | 	date |  |  |  | 	date | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | ##--------- Commandes spécifiques pour NixOS
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | clean: |  |  |  | clean: | 
			
		
	
		
		
			
				
					
					|  |  |  | 	nix-collect-garbage -d --delete-older-than 15d |  |  |  | 	nix-collect-garbage -d --delete-older-than 15d | 
			
		
	
	
		
		
			
				
					|  |  | @ -15,22 +16,24 @@ clean-log: | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | full-auto: submodules-update upgrade clean optimise |  |  |  | full-auto: submodules-update upgrade clean optimise | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | munin: |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 	pushd /var/www/munin/ ; python -m SimpleHTTPServer 8000 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | optimise: |  |  |  | optimise: | 
			
		
	
		
		
			
				
					
					|  |  |  | 	nix-store --optimise |  |  |  | 	nix-store --optimise | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | push: submodules-push |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 	git push --all |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 	git push --tags |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | rebuild-switch: |  |  |  | rebuild-switch: | 
			
		
	
		
		
			
				
					
					|  |  |  | 	nixos-rebuild switch --fallback  --show-trace |  |  |  | 	nixos-rebuild switch --fallback  --show-trace | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | store-repair: |  |  |  | store-repair: | 
			
		
	
		
		
			
				
					
					|  |  |  | 	nix-store --verify --check-contents --repair |  |  |  | 	nix-store --verify --check-contents --repair | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | upgrade: | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	nixos-rebuild switch --upgrade --fallback --show-trace | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | ##--------- Commandes spécifiques pour GIT
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | push: submodules-push | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	git push --all | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	git push --tags | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | submodules-update: |  |  |  | submodules-update: | 
			
		
	
		
		
			
				
					
					|  |  |  | 	#git submodule update --remote |  |  |  | 	#git submodule update --remote | 
			
		
	
		
		
			
				
					
					|  |  |  | 	git submodule foreach git co master |  |  |  | 	git submodule foreach git co master | 
			
		
	
	
		
		
			
				
					|  |  | @ -49,9 +52,10 @@ template: | 
			
		
	
		
		
			
				
					
					|  |  |  | tag: submodules-tag |  |  |  | tag: submodules-tag | 
			
		
	
		
		
			
				
					
					|  |  |  | 	git tag -f "$$(date +%F)-$$(hostname -s)" |  |  |  | 	git tag -f "$$(date +%F)-$$(hostname -s)" | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | upgrade: |  |  |  | ##--------- Munin
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 	nixos-rebuild switch --upgrade --fallback --show-trace |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | munin: | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	pushd /var/www/munin/ ; python -m SimpleHTTPServer 8000 | 
			
		
	
		
		
			
				
					
					|  |  |  | ##--------- Gestion d'un système de fichier monté en mémoire
 |  |  |  | ##--------- Gestion d'un système de fichier monté en mémoire
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | tmpfs-create: |  |  |  | tmpfs-create: | 
			
		
	
	
		
		
			
				
					|  |  | 
 |