create podman module
This commit is contained in:
		| @@ -87,11 +87,6 @@ | ||||
|   environment.sessionVariables.NIXOS_OZONE_WL = "1"; | ||||
|  | ||||
|   virtualisation = { | ||||
|     podman = { | ||||
|       enable = true; | ||||
|       dockerCompat = true; | ||||
|       defaultNetwork.settings.dns_enabled = true; | ||||
|     }; | ||||
|     libvirtd = { | ||||
|       enable = true; | ||||
|       qemu = { | ||||
|   | ||||
| @@ -5,7 +5,7 @@ | ||||
| }: let | ||||
|   cfg = config.myConfig; | ||||
| in { | ||||
|   imports = [./bootloader.nix ./locale.nix ./greetd.nix ./rebuild.nix ./sops.nix ./sway.nix ./wifi.nix ./music.nix ./cups.nix ./gpu/amd.nix ./touch.nix ./cache.nix ./nix.nix ./update.nix]; | ||||
|   imports = [./bootloader.nix ./locale.nix ./greetd.nix ./rebuild.nix ./sops.nix ./sway.nix ./wifi.nix ./music.nix ./cups.nix ./gpu/amd.nix ./touch.nix ./cache.nix ./nix.nix ./update.nix ./podman.nix]; | ||||
|  | ||||
|   options.myConfig = { | ||||
|     enable = lib.mkEnableOption "my custom config"; | ||||
| @@ -26,6 +26,7 @@ in { | ||||
|     rebuild.enable = true; | ||||
|     cache.enable = true; | ||||
|     autoUpdate.enable = true; | ||||
|     podman.enable = true; | ||||
|  | ||||
|     greetd.enable = lib.mkIf cfg.desktop true; | ||||
|     sway.enable = lib.mkIf cfg.desktop true; | ||||
|   | ||||
							
								
								
									
										20
									
								
								modules/nixos/podman.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								modules/nixos/podman.nix
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| { | ||||
|   lib, | ||||
|   config, | ||||
|   ... | ||||
| }: let | ||||
|   cfg = config.myConfig.podman; | ||||
| in { | ||||
|   options.myConfig.podman = { | ||||
|     enable = lib.mkEnableOption "podman"; | ||||
|   }; | ||||
|  | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     virtualisation. | ||||
|     podman = { | ||||
|       enable = true; | ||||
|       dockerCompat = true; | ||||
|       defaultNetwork.settings.dns_enabled = true; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user