Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
env:
# HOST_ARCH value must match string in Lima download filename
HOST_ARCH: ${{ matrix.os == 'ubuntu-24.04' && 'x86_64' || (matrix.os == 'ubuntu-24.04-arm' && 'aarch64') || 'unknown' }}
LIMA_VERSION: "v1.0.6"
LIMA_VERSION: "v1.2.1"
GUEST_HOST_NAME: "nixsample"
GUEST_USER: "lima"
name: NixOS-${{ matrix.guest-arch }} Lima on ${{ matrix.os }}
Expand All @@ -42,7 +42,7 @@ jobs:
id: lima-actions-setup
with:
version: ${{ env.LIMA_VERSION }}
additional_guestagents: ${{ matrix.os == 'ubuntu-24.04' && 'false' || (matrix.os == 'ubuntu-24.04-arm' && 'true') || 'false' }}
additional_guestagents: true

- name: "Cache ~/.cache/lima"
uses: actions/cache@v4
Expand All @@ -56,7 +56,7 @@ jobs:
QEMU_SYSTEM_AARCH64: ${{ env.HOST_ARCH == 'aarch64' && 'qemu-system-aarch64 -machine virt -cpu max' || 'qemu-system-aarch64' }}
run: |
set -eux
limactl start --vm-type qemu --arch ${{ matrix.guest-arch }} --name=${{ env.GUEST_HOST_NAME }} --network=lima:user-v2 --set '.user.name = "${{ env.GUEST_USER }}"' nixos.yaml
LIMA_SSH_PORT_FORWARDER=true LIMA_USERNET_RESOLVE_IP_ADDRESS_TIMEOUT=5 limactl start --vm-type qemu --arch ${{ matrix.guest-arch }} --name=${{ env.GUEST_HOST_NAME }} --network=lima:user-v2 --set '.user.name = "${{ env.GUEST_USER }}"' nixos.yaml

- name: "Update and Rebuild NixOS"
run: |
Expand Down
2 changes: 1 addition & 1 deletion setup-nixos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ limactl shell $GUEST_HOST_NAME -- sudo bash -c "cd /etc/nixos ; git checkout mas
limactl shell $GUEST_HOST_NAME -- sudo nixos-rebuild boot --flake .#$GUEST_CONFIG_NAME
sleep 1
limactl stop $GUEST_HOST_NAME
limactl start $GUEST_HOST_NAME
LIMA_SSH_PORT_FORWARDER=true LIMA_USERNET_RESOLVE_IP_ADDRESS_TIMEOUT=5 limactl start $GUEST_HOST_NAME
Loading