mirror of
				https://github.com/Stunkymonkey/nixos.git
				synced 2025-10-30 01:12:10 +01:00 
			
		
		
		
	system/kvm: rename from virtualization
This commit is contained in:
		
							parent
							
								
									93cc7dcfc5
								
							
						
					
					
						commit
						2350dd913a
					
				
					 4 changed files with 8 additions and 8 deletions
				
			
		|  | @ -6,10 +6,10 @@ in | |||
| { | ||||
|   my.system = { | ||||
|     avahi.enable = true; | ||||
|     podman.enable = true; | ||||
|     virtualization = { | ||||
|     kvm = { | ||||
|       enable = true; | ||||
|       cpuFlavor = "intel"; | ||||
|     }; | ||||
|     podman.enable = true; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
|  | @ -3,8 +3,7 @@ | |||
|   imports = [ | ||||
|     ./avahi | ||||
|     ./docker | ||||
|     ./kvm | ||||
|     ./podman | ||||
|     ./virtualization | ||||
|   ]; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,10 +1,10 @@ | |||
| { config, lib, pkgs, ... }: | ||||
| let | ||||
|   cfg = config.my.system.virtualization; | ||||
|   cfg = config.my.system.kvm; | ||||
| in | ||||
| { | ||||
|   options.my.system.virtualization = with lib; { | ||||
|     enable = mkEnableOption "virtualization configuration"; | ||||
|   options.my.system.kvm = with lib; { | ||||
|     enable = mkEnableOption "kvm configuration"; | ||||
| 
 | ||||
|     cpuFlavor = mkOption { | ||||
|       type = with types; nullOr (enum [ "intel" "amd" ]); | ||||
|  | @ -18,7 +18,8 @@ in | |||
|       enable = true; | ||||
| 
 | ||||
|       # Use fake `docker` command to redirect to `podman` | ||||
|       dockerCompat = true; | ||||
|       # but only if docker is not enabled | ||||
|       dockerCompat = !config.my.system.docker.enable; | ||||
| 
 | ||||
|       # Expose a docker-like socket | ||||
|       dockerSocket.enable = true; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Felix Buehler
						Felix Buehler