Make config host independant
This commit is contained in:
		
							parent
							
								
									d0317d9b39
								
							
						
					
					
						commit
						dc30940074
					
				
					 8 changed files with 67 additions and 20 deletions
				
			
		|  | @ -2,6 +2,6 @@ | |||
| { | ||||
|   imports = [ | ||||
|     ./hardware-configuration.nix | ||||
|     #./disko.nix | ||||
|     ./disko.nix | ||||
|   ]; | ||||
| } | ||||
|  | @ -41,6 +41,10 @@ | |||
|                     mountOptions = [ "compress=zstd" "noatime" ]; | ||||
|                     mountpoint = "/nix"; | ||||
|                   }; | ||||
|                   "/mnt/data" = { | ||||
|                     mountOptions = [ "compress=zstd" "noatime" ]; | ||||
|                     mountpoint = "/mnt/data"; | ||||
|                   }; | ||||
|                   # Subvolume for the swapfile | ||||
|                   "/swap" = { | ||||
|                     mountpoint = "/.swapvol"; | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| { pkgs, ... }: | ||||
| { pkgs, configVars, ... }: | ||||
| { | ||||
|   networking.hostName = "Lenni"; | ||||
|   networking.hostName = configVars.hostname; | ||||
|   imports = [ | ||||
|     ./nix-ld.nix | ||||
|     ./boot.nix | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { pkgs, ... }: | ||||
| { pkgs, configVars, ... }: | ||||
| { | ||||
|   imports = [ | ||||
|     ./common | ||||
|     ./Lenni | ||||
|     ./${configVars.hostname} | ||||
|   ]; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue