Add copy-nixos-config documentation.
This commit is contained in:
		
							parent
							
								
									306271f2c5
								
							
						
					
					
						commit
						e31481100b
					
				| 
						 | 
					@ -1,5 +1,24 @@
 | 
				
			||||||
# NixOS Configurations
 | 
					# NixOS Configurations
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Management
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Using the `copy-nixos-config` script, all the configurations are stored in `$BAUKE_DIR/nix/` and copied to `/etc/nixos` for each respective [system](#Systems).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					* Get a diff between the current files in `/etc/nixos` and `$BAUKE_DIR/nix/<system>`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```zsh
 | 
				
			||||||
 | 
					copy-nixos-config --diff
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					* Copy the configuration and immediately run `nixos-rebuild <command>`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```zsh
 | 
				
			||||||
 | 
					copy-nixos-config --rebuild <command>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# For example, to switch:
 | 
				
			||||||
 | 
					copy-nixos-config --rebuild switch
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Systems
 | 
					## Systems
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* [Stardust](./nix/stardust/)
 | 
					* [Stardust](./nix/stardust/)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in New Issue