From 59118ef4462be0b0d7f0367b3a033fc3ea231818 Mon Sep 17 00:00:00 2001 From: nicco Date: Mon, 16 Nov 2026 13:57:34 +0100 Subject: [PATCH] fix colima setup --- files/colima/colima.yaml | 26 +++++++++++++------------- home/home.nix | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/files/colima/colima.yaml b/files/colima/colima.yaml index ecfb108..5b8c9b2 100644 --- a/files/colima/colima.yaml +++ b/files/colima/colima.yaml @@ -10,7 +10,7 @@ disk: 100 # Size of the memory in GiB to be allocated to the virtual machine. # Default: 2 -memory: 4 +memory: 8 # Architecture of the virtual machine (x86_64, aarch64, host). # @@ -42,17 +42,17 @@ kubernetes: # Enable kubernetes. # Default: false enabled: false - + # Kubernetes version to use. # This needs to exactly match a k3s version https://github.com/k3s-io/k3s/releases # Default: latest stable release version: v1.33.3+k3s1 - + # Additional args to pass to k3s https://docs.k3s.io/cli/server # Default: traefik is disabled k3sArgs: - --disable=traefik - + # Kubernetes port to listen on # A common port is 6443, though left unbound to ensure no port conflicts # Default: pick random unbound port @@ -72,23 +72,23 @@ network: # NOTE: this is currently macOS only and ignored on Linux. # Default: false address: false - + # Network mode for the virtual machine (shared, bridged). # NOTE: this is currently macOS only and ignored on Linux. # Default: shared mode: shared - + # Network interface to use for bridged mode. # This is only used when mode is set to bridged. # NOTE: this is currently macOS only and ignored on Linux. # Default: en0 interface: en0 - + # Use the assigned IP address as the preferred route for the VM. # Note: this only has an effect when `address` is set to true. # Default: false preferredRoute: false - + # Custom DNS resolvers for the virtual machine. # # EXAMPLE @@ -96,7 +96,7 @@ network: # # Default: [] dns: [] - + # DNS hostnames to resolve to custom targets using the internal resolver. # This setting has no effect if a custom DNS resolver list is supplied above. # It does not configure the /etc/hosts files of any machine or container. @@ -107,7 +107,7 @@ network: # example.com: 1.2.3.4 dnsHosts: host.docker.internal: host.lima.internal - + # Replicate host IP addresses in the VM. This enables port forwarding to specific # host IP addresses. # e.g. `docker run --port 10.0.1.2:8080:8080 alpine` would only forward to the @@ -115,7 +115,7 @@ network: # # Default: false hostAddresses: false - + # Custom gateway address for the virtual machine. # The last octet needs to be 2. # @@ -160,7 +160,7 @@ docker: {} # # NOTE: value cannot be changed after virtual machine is created. # Default: qemu -vmType: qemu +vmType: vz # Port forwarder for the virtual machine (ssh, grpc, none). # ssh is more stable but supports only TCP. @@ -193,7 +193,7 @@ nestedVirtualization: false # # NOTE: value cannot be changed after virtual machine is created. # Default: virtiofs (for vz), sshfs (for qemu) -mountType: sshfs +mountType: virtiofs # Propagate inotify file events to the VM. # NOTE: this is experimental. diff --git a/home/home.nix b/home/home.nix index e7be2fc..0ec401c 100644 --- a/home/home.nix +++ b/home/home.nix @@ -27,7 +27,7 @@ let file = { # Writable symlinks into the repo ".config/zed" = link "secrets/zed"; - ".colima/default/colima.yaml" = link "files/colima/colima.yaml"; + ".colima/_templates/default.yaml" = link "files/colima/colima.yaml"; ".agents" = link "files/agents"; ".config/opencode/AGENTS.md" = link "secrets/opencode/AGENTS.md";