From dbd99ddccae84c96811f5677e6ff93d5dba50cb0 Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 16 Sep 2025 11:50:49 +0300 Subject: [PATCH 01/28] update checkout --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d7fa42..aa7234d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: || matrix.system == 'x86_64-darwin' && 'macos-latest' }} steps: - name: Checkout the repository - uses: actions/checkout@v2 + uses: actions/checkout@v5.0.0 - name: setup nix uses: ./.github/actions/setup-nix From aafec377836cf58a8041ea33fd87817b1a4a7380 Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 16 Sep 2025 11:51:05 +0300 Subject: [PATCH 02/28] add nixConfig --- flake.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/flake.nix b/flake.nix index 47091ae..fa76ac6 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,17 @@ { description = "My custom neovim configuration that has been mixed and matched from various sources"; + nixConfig = { + extra-substituters = [ + "https://nix-community.cachix.org" + "http://wallfacer.curl-boga.ts.net:7080" + ]; + extra-trusted-public-keys = [ + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + "main:2AjPdIsbKyoTGuw+4x2ZXMUT/353CXosW9pdbTQtjqw=" + ]; + }; + inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; # https://gerschtli.github.io/nix-formatter-pack/nix-formatter-pack-options.html From eb926f2bd03b6b4e1b4a3df5f7c31fcce588751a Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 16 Sep 2025 13:13:21 +0300 Subject: [PATCH 03/28] i am done --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa7234d..6c64f1d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,14 +21,15 @@ jobs: || matrix.system == 'aarch64-linux' && 'ubuntu-24.04-arm' || matrix.system == 'x86_64-darwin' && 'macos-latest' }} steps: - - name: Checkout the repository - uses: actions/checkout@v5.0.0 + - uses: actions/checkout@v4 + with: + sparse-checkout: .github/actions - name: setup nix uses: ./.github/actions/setup-nix with: system: ${{ matrix.system }} - + - name: Login to tailscale uses: tailscale/github-action@v3.2.3 with: From 7a25a807d729da2c5842e095923a9d65ae3b9845 Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 16 Sep 2025 13:13:30 +0300 Subject: [PATCH 04/28] much better --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index fa76ac6..9c649a6 100644 --- a/flake.nix +++ b/flake.nix @@ -4,7 +4,7 @@ nixConfig = { extra-substituters = [ "https://nix-community.cachix.org" - "http://wallfacer.curl-boga.ts.net:7080" + "http://wallfacer.curl-boga.ts.net:7080/main" ]; extra-trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" From 362bec5bab262bc5fa40d75871d2ec1bea6c0458 Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 16 Sep 2025 13:27:40 +0300 Subject: [PATCH 05/28] formatting --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 9c649a6..03dac0a 100644 --- a/flake.nix +++ b/flake.nix @@ -10,7 +10,7 @@ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "main:2AjPdIsbKyoTGuw+4x2ZXMUT/353CXosW9pdbTQtjqw=" ]; - }; + }; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; From 08c76f13db01ba610eaea79e2955dc5721f44adc Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 16 Sep 2025 13:43:32 +0300 Subject: [PATCH 06/28] why did i do this --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c64f1d..ee7964f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,8 +22,7 @@ jobs: || matrix.system == 'x86_64-darwin' && 'macos-latest' }} steps: - uses: actions/checkout@v4 - with: - sparse-checkout: .github/actions + - name: setup nix uses: ./.github/actions/setup-nix From 1bfe1d1f004cde33a8459251a02aca2b1e9b4464 Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 16 Sep 2025 13:49:50 +0300 Subject: [PATCH 07/28] dont do this 3 times simultaniously --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee7964f..0dc1556 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: setup nix uses: ./.github/actions/setup-nix with: @@ -67,17 +66,20 @@ jobs: run: du -sh /nix/store - name: Get the init.lua path + if: matrix.system == 'x86_64-linux' run: | init_path=$(grep "init=" result/bin/nixvim-print-init | awk -F'=' '{print $2}') cp $init_path init.lua - name: Upload the artifact uses: actions/upload-artifact@v4 + if: matrix.system == 'x86_64-linux' with: name: neovim-configuration path: init.lua - name: Publish the init.lua to an orphan github branch + if: matrix.system == 'x86_64-linux' run: | git config --global user.name github-actions git config --global user.email github-actions@github.com @@ -87,6 +89,7 @@ jobs: git commit -m "Publish init.lua" git push --force origin init-lua + check-formatting: runs-on: ubuntu-24.04 steps: From c63baacd9cf3f1bd93e334448554585b7c61768c Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 16 Sep 2025 13:51:22 +0300 Subject: [PATCH 08/28] add debug --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0dc1556..318b0b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,6 +89,12 @@ jobs: git commit -m "Publish init.lua" git push --force origin init-lua + # print the current folder path and the contents of the folder + - name: Debug current folder + run: | + pwd + ls -la + check-formatting: runs-on: ubuntu-24.04 From 66b069b50d14f8e5fb8b7a258dad3ba9b1b2b6d9 Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 16 Sep 2025 13:56:45 +0300 Subject: [PATCH 09/28] This is it --- .github/workflows/ci.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 318b0b0..bffb77d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,13 +88,7 @@ jobs: git add init.lua git commit -m "Publish init.lua" git push --force origin init-lua - - # print the current folder path and the contents of the folder - - name: Debug current folder - run: | - pwd - ls -la - + git checkout main # switch back to main branch for graceful job ending check-formatting: runs-on: ubuntu-24.04 From fb62d9d8042139a6a5054b6914a2945ae1b805c6 Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 16 Sep 2025 14:14:13 +0300 Subject: [PATCH 10/28] tailscale status --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bffb77d..16e2a0e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,6 +38,9 @@ jobs: || matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }} tags: tag:ci + - name: Tailscale status + run: tailscale status > /dev/null + - name: Check if Attic endpoint is reachable id: check_attic run: | From 5163585282c7ad523b6df2f2292852b216e881cf Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 16 Sep 2025 14:24:16 +0300 Subject: [PATCH 11/28] errrrrrrrr --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16e2a0e..4b7c71f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,7 +39,7 @@ jobs: tags: tag:ci - name: Tailscale status - run: tailscale status > /dev/null + run: tailscale status || true - name: Check if Attic endpoint is reachable id: check_attic From b50ee232bbd1274e5af2f5cb7097f90ddcbdf2bc Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 16 Sep 2025 14:34:46 +0300 Subject: [PATCH 12/28] Why macos is so shitty --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b7c71f..de52ba2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,12 +44,16 @@ jobs: - name: Check if Attic endpoint is reachable id: check_attic run: | - if curl --connect-timeout 5 --silent --head http://wallfacer.curl-boga.ts.net:7080 | grep "200 OK"; then + if curl --connect-timeout 20 --silent --head http://wallfacer.curl-boga.ts.net:7080 | grep "200 OK"; then echo "reachable=true" >> $GITHUB_OUTPUT else echo "reachable=false" >> $GITHUB_OUTPUT fi + - name: Curl the cache + run: | + curl http://wallfacer.curl-boga.ts.net:7080/main/nix-cache-info + - name: Setup Attic cache if: steps.check_attic.outputs.reachable == 'true' uses: ryanccn/attic-action@v0.3.1 From 719383c09800d0e69c9d5565100491733d828232 Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 16 Sep 2025 14:47:38 +0300 Subject: [PATCH 13/28] use nix to install tailscale --- .github/workflows/ci.yml | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de52ba2..fee09d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,15 +28,27 @@ jobs: with: system: ${{ matrix.system }} - - name: Login to tailscale - uses: tailscale/github-action@v3.2.3 - with: - oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} - oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} - hostname: ${{ matrix.system == 'x86_64-linux' && 'github-actions-x86-64-linux' + - name: Install and start Tailscale + run: | + # Install tailscale via nix + nix profile install nixpkgs#tailscale + + # Start tailscaled daemon in background + sudo $(nix profile list | grep tailscale | awk '{print $4}')/bin/tailscaled --state=mem: & + + # Wait for daemon to be ready + sleep 10 + + # Connect using OAuth + HOSTNAME="${{ matrix.system == 'x86_64-linux' && 'github-actions-x86-64-linux' || matrix.system == 'aarch64-linux' && 'github-actions-aarch64-linux' - || matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }} - tags: tag:ci + || matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }}" + + $(nix profile list | grep tailscale | awk '{print $4}')/bin/tailscale up \ + --authkey="${{ secrets.TS_OAUTH_SECRET }}?preauthorized=true&ephemeral=true" \ + --hostname="$HOSTNAME" \ + --advertise-tags="tag:ci" \ + --accept-routes - name: Tailscale status run: tailscale status || true @@ -52,7 +64,7 @@ jobs: - name: Curl the cache run: | - curl http://wallfacer.curl-boga.ts.net:7080/main/nix-cache-info + curl --connect-timeout 20 --silent http://wallfacer.curl-boga.ts.net:7080/main/nix-cache-info || echo "Cache endpoint not reachable" - name: Setup Attic cache if: steps.check_attic.outputs.reachable == 'true' From 15c363d07ba582a031a6f91f877566a750e88e4d Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 16 Sep 2025 15:01:19 +0300 Subject: [PATCH 14/28] profile install should allow this --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fee09d1..ec3af35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: nix profile install nixpkgs#tailscale # Start tailscaled daemon in background - sudo $(nix profile list | grep tailscale | awk '{print $4}')/bin/tailscaled --state=mem: & + sudo tailscaled --state=mem: & # Wait for daemon to be ready sleep 10 @@ -44,7 +44,7 @@ jobs: || matrix.system == 'aarch64-linux' && 'github-actions-aarch64-linux' || matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }}" - $(nix profile list | grep tailscale | awk '{print $4}')/bin/tailscale up \ + tailscale up \ --authkey="${{ secrets.TS_OAUTH_SECRET }}?preauthorized=true&ephemeral=true" \ --hostname="$HOSTNAME" \ --advertise-tags="tag:ci" \ From 10d41e635d8099f90a86bf7afdec23b1258f473d Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 16 Sep 2025 15:02:35 +0300 Subject: [PATCH 15/28] nix shell it is --- .github/workflows/ci.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec3af35..de37fa6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,11 +30,8 @@ jobs: - name: Install and start Tailscale run: | - # Install tailscale via nix - nix profile install nixpkgs#tailscale - - # Start tailscaled daemon in background - sudo tailscaled --state=mem: & + # Start tailscaled daemon in background using nix shell + sudo nix shell nixpkgs#tailscale --command tailscaled --state=mem: & # Wait for daemon to be ready sleep 10 @@ -44,14 +41,14 @@ jobs: || matrix.system == 'aarch64-linux' && 'github-actions-aarch64-linux' || matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }}" - tailscale up \ + nix shell nixpkgs#tailscale --command tailscale up \ --authkey="${{ secrets.TS_OAUTH_SECRET }}?preauthorized=true&ephemeral=true" \ --hostname="$HOSTNAME" \ --advertise-tags="tag:ci" \ --accept-routes - name: Tailscale status - run: tailscale status || true + run: nix shell nixpkgs#tailscale --command tailscale status || true - name: Check if Attic endpoint is reachable id: check_attic From d47e9c78172749c22eae2a4f5029c49fb07fca09 Mon Sep 17 00:00:00 2001 From: osbm Date: Wed, 17 Sep 2025 13:18:16 +0300 Subject: [PATCH 16/28] verbose --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de37fa6..d804c2d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,8 +54,10 @@ jobs: id: check_attic run: | if curl --connect-timeout 20 --silent --head http://wallfacer.curl-boga.ts.net:7080 | grep "200 OK"; then + echo "Attic endpoint is reachable" echo "reachable=true" >> $GITHUB_OUTPUT else + echo "Attic endpoint is not reachable" echo "reachable=false" >> $GITHUB_OUTPUT fi From 88d424e8f1882ed1f77facd4d3eeda90b2ab5507 Mon Sep 17 00:00:00 2001 From: osbm Date: Wed, 17 Sep 2025 13:20:23 +0300 Subject: [PATCH 17/28] try full path --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d804c2d..3bcc3c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: - name: Install and start Tailscale run: | # Start tailscaled daemon in background using nix shell - sudo nix shell nixpkgs#tailscale --command tailscaled --state=mem: & + sudo /nix/var/nix/profiles/default/bin/nix shell nixpkgs#tailscale --command tailscaled --state=mem: & # Wait for daemon to be ready sleep 10 From 1473b3dfe9c071e3959d772a08212aa6481061a4 Mon Sep 17 00:00:00 2001 From: osbm Date: Wed, 17 Sep 2025 13:23:27 +0300 Subject: [PATCH 18/28] use environment --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3bcc3c4..d5a8420 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: - name: Install and start Tailscale run: | # Start tailscaled daemon in background using nix shell - sudo /nix/var/nix/profiles/default/bin/nix shell nixpkgs#tailscale --command tailscaled --state=mem: & + sudo -E nix shell nixpkgs#tailscale --command tailscaled --state=mem: & # Wait for daemon to be ready sleep 10 From a2420c650f5eaff6ef3518d4ee3002caf0505232 Mon Sep 17 00:00:00 2001 From: osbm Date: Wed, 17 Sep 2025 13:25:03 +0300 Subject: [PATCH 19/28] Revert "use environment" This reverts commit 1473b3dfe9c071e3959d772a08212aa6481061a4. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d5a8420..3bcc3c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: - name: Install and start Tailscale run: | # Start tailscaled daemon in background using nix shell - sudo -E nix shell nixpkgs#tailscale --command tailscaled --state=mem: & + sudo /nix/var/nix/profiles/default/bin/nix shell nixpkgs#tailscale --command tailscaled --state=mem: & # Wait for daemon to be ready sleep 10 From 30cec2b8363928279e2448a6aaac13029485450d Mon Sep 17 00:00:00 2001 From: osbm Date: Wed, 17 Sep 2025 13:26:47 +0300 Subject: [PATCH 20/28] try all root --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3bcc3c4..fddbead 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,14 +41,14 @@ jobs: || matrix.system == 'aarch64-linux' && 'github-actions-aarch64-linux' || matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }}" - nix shell nixpkgs#tailscale --command tailscale up \ + sudo nix shell nixpkgs#tailscale --command tailscale up \ --authkey="${{ secrets.TS_OAUTH_SECRET }}?preauthorized=true&ephemeral=true" \ --hostname="$HOSTNAME" \ --advertise-tags="tag:ci" \ --accept-routes - name: Tailscale status - run: nix shell nixpkgs#tailscale --command tailscale status || true + run: sudo nix shell nixpkgs#tailscale --command tailscale status || true - name: Check if Attic endpoint is reachable id: check_attic From 8901f583b4e56e29313de53c62dc3814cdcf2a3c Mon Sep 17 00:00:00 2001 From: osbm Date: Wed, 17 Sep 2025 13:30:46 +0300 Subject: [PATCH 21/28] i dont see why this shouldnt work --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fddbead..9ba6aee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,8 @@ jobs: - name: Install and start Tailscale run: | # Start tailscaled daemon in background using nix shell - sudo /nix/var/nix/profiles/default/bin/nix shell nixpkgs#tailscale --command tailscaled --state=mem: & + nix profile install nixpkgs#tailscale + tailscaled --state=mem: & # Wait for daemon to be ready sleep 10 @@ -41,14 +42,14 @@ jobs: || matrix.system == 'aarch64-linux' && 'github-actions-aarch64-linux' || matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }}" - sudo nix shell nixpkgs#tailscale --command tailscale up \ + tailscale up \ --authkey="${{ secrets.TS_OAUTH_SECRET }}?preauthorized=true&ephemeral=true" \ --hostname="$HOSTNAME" \ --advertise-tags="tag:ci" \ --accept-routes - name: Tailscale status - run: sudo nix shell nixpkgs#tailscale --command tailscale status || true + run: tailscale status || true - name: Check if Attic endpoint is reachable id: check_attic From 3f00007a1fa3ba94cde52edf07a5c34fb17077e2 Mon Sep 17 00:00:00 2001 From: osbm Date: Wed, 17 Sep 2025 13:34:46 +0300 Subject: [PATCH 22/28] imma try it anyway --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ba6aee..f1b7a7c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,8 +31,8 @@ jobs: - name: Install and start Tailscale run: | # Start tailscaled daemon in background using nix shell - nix profile install nixpkgs#tailscale - tailscaled --state=mem: & + nix profile add nixpkgs#tailscale + sudo tailscaled --state=mem: & # Wait for daemon to be ready sleep 10 From 6d22222568035b19663a9dbecfd0d8a8baf89411 Mon Sep 17 00:00:00 2001 From: osbm Date: Wed, 17 Sep 2025 13:39:07 +0300 Subject: [PATCH 23/28] first try this --- .github/workflows/ci.yml | 44 ++++++++++++++++++++++++---------------- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f1b7a7c..edcb5ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,25 +28,35 @@ jobs: with: system: ${{ matrix.system }} - - name: Install and start Tailscale - run: | - # Start tailscaled daemon in background using nix shell - nix profile add nixpkgs#tailscale - sudo tailscaled --state=mem: & - - # Wait for daemon to be ready - sleep 10 - - # Connect using OAuth - HOSTNAME="${{ matrix.system == 'x86_64-linux' && 'github-actions-x86-64-linux' + - name: Login to tailscale + uses: tailscale/github-action@v3.2.3 + with: + oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} + oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} + hostname: ${{ matrix.system == 'x86_64-linux' && 'github-actions-x86-64-linux' || matrix.system == 'aarch64-linux' && 'github-actions-aarch64-linux' - || matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }}" + || matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }} + tags: tag:ci + + # - name: Install and start Tailscale + # run: | + # # Start tailscaled daemon in background using nix shell + # nix profile add nixpkgs#tailscale + # sudo tailscaled --state=mem: & - tailscale up \ - --authkey="${{ secrets.TS_OAUTH_SECRET }}?preauthorized=true&ephemeral=true" \ - --hostname="$HOSTNAME" \ - --advertise-tags="tag:ci" \ - --accept-routes + # # Wait for daemon to be ready + # sleep 10 + + # # Connect using OAuth + # HOSTNAME="${{ matrix.system == 'x86_64-linux' && 'github-actions-x86-64-linux' + # || matrix.system == 'aarch64-linux' && 'github-actions-aarch64-linux' + # || matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }}" + + # tailscale up \ + # --authkey="${{ secrets.TS_OAUTH_SECRET }}?preauthorized=true&ephemeral=true" \ + # --hostname="$HOSTNAME" \ + # --advertise-tags="tag:ci" \ + # --accept-routes - name: Tailscale status run: tailscale status || true From ed33e038a72bbec33cadd171f2da897e77799860 Mon Sep 17 00:00:00 2001 From: osbm Date: Wed, 17 Sep 2025 13:45:11 +0300 Subject: [PATCH 24/28] a man can dream --- .github/workflows/ci.yml | 28 ++++++++++++++-------------- flake.nix | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index edcb5ab..774cdd2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,15 +28,15 @@ jobs: with: system: ${{ matrix.system }} - - name: Login to tailscale - uses: tailscale/github-action@v3.2.3 - with: - oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} - oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} - hostname: ${{ matrix.system == 'x86_64-linux' && 'github-actions-x86-64-linux' - || matrix.system == 'aarch64-linux' && 'github-actions-aarch64-linux' - || matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }} - tags: tag:ci + # - name: Login to tailscale + # uses: tailscale/github-action@v3.2.3 + # with: + # oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} + # oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} + # hostname: ${{ matrix.system == 'x86_64-linux' && 'github-actions-x86-64-linux' + # || matrix.system == 'aarch64-linux' && 'github-actions-aarch64-linux' + # || matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }} + # tags: tag:ci # - name: Install and start Tailscale # run: | @@ -58,13 +58,13 @@ jobs: # --advertise-tags="tag:ci" \ # --accept-routes - - name: Tailscale status - run: tailscale status || true + # - name: Tailscale status + # run: tailscale status || true - name: Check if Attic endpoint is reachable id: check_attic run: | - if curl --connect-timeout 20 --silent --head http://wallfacer.curl-boga.ts.net:7080 | grep "200 OK"; then + if curl --connect-timeout 20 --silent --head https://cache.osbm.dev | grep "200 OK"; then echo "Attic endpoint is reachable" echo "reachable=true" >> $GITHUB_OUTPUT else @@ -74,13 +74,13 @@ jobs: - name: Curl the cache run: | - curl --connect-timeout 20 --silent http://wallfacer.curl-boga.ts.net:7080/main/nix-cache-info || echo "Cache endpoint not reachable" + curl --connect-timeout 20 --silent https://cache.osbm.dev/main/nix-cache-info || echo "Cache endpoint not reachable" - name: Setup Attic cache if: steps.check_attic.outputs.reachable == 'true' uses: ryanccn/attic-action@v0.3.1 with: - endpoint: http://wallfacer.curl-boga.ts.net:7080 + endpoint: https://cache.osbm.dev cache: main token: ${{ secrets.ATTIC_TOKEN }} diff --git a/flake.nix b/flake.nix index 03dac0a..cf3b069 100644 --- a/flake.nix +++ b/flake.nix @@ -4,7 +4,7 @@ nixConfig = { extra-substituters = [ "https://nix-community.cachix.org" - "http://wallfacer.curl-boga.ts.net:7080/main" + "https://cache.osbm.dev/main" ]; extra-trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" From 9407917da864f6cdd93d1564bab5900b28ada7d2 Mon Sep 17 00:00:00 2001 From: osbm Date: Wed, 17 Sep 2025 13:48:32 +0300 Subject: [PATCH 25/28] dont check --- .github/workflows/ci.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 774cdd2..e4ae44b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,23 +61,23 @@ jobs: # - name: Tailscale status # run: tailscale status || true - - name: Check if Attic endpoint is reachable - id: check_attic - run: | - if curl --connect-timeout 20 --silent --head https://cache.osbm.dev | grep "200 OK"; then - echo "Attic endpoint is reachable" - echo "reachable=true" >> $GITHUB_OUTPUT - else - echo "Attic endpoint is not reachable" - echo "reachable=false" >> $GITHUB_OUTPUT - fi + # - name: Check if Attic endpoint is reachable + # id: check_attic + # run: | + # if curl --connect-timeout 20 --silent --head https://cache.osbm.dev | grep "200 OK"; then + # echo "Attic endpoint is reachable" + # echo "reachable=true" >> $GITHUB_OUTPUT + # else + # echo "Attic endpoint is not reachable" + # echo "reachable=false" >> $GITHUB_OUTPUT + # fi - name: Curl the cache run: | curl --connect-timeout 20 --silent https://cache.osbm.dev/main/nix-cache-info || echo "Cache endpoint not reachable" - name: Setup Attic cache - if: steps.check_attic.outputs.reachable == 'true' + # if: steps.check_attic.outputs.reachable == 'true' uses: ryanccn/attic-action@v0.3.1 with: endpoint: https://cache.osbm.dev From b158f155aaed62cafb3f5cb0093a90290f4585b0 Mon Sep 17 00:00:00 2001 From: osbm Date: Wed, 17 Sep 2025 13:56:56 +0300 Subject: [PATCH 26/28] much better --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4ae44b..eeeafc4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,8 +88,10 @@ jobs: run: nix flake check --accept-flake-config - - name: Pre-build the system configuration - run: nix build --accept-flake-config . + - name: Build the Neovim Configuration + run: nix build --accept-flake-config . -j3 + timeout-minutes: 300 + continue-on-error: true - name: Print out the size of /nix/store run: du -sh /nix/store From b9498fefd50d867defd0071243e55b99a6e4d747 Mon Sep 17 00:00:00 2001 From: osbm Date: Thu, 18 Sep 2025 08:51:11 +0300 Subject: [PATCH 27/28] Revert "dont check" This reverts commit 9407917da864f6cdd93d1564bab5900b28ada7d2. --- .github/workflows/ci.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eeeafc4..194a032 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,23 +61,23 @@ jobs: # - name: Tailscale status # run: tailscale status || true - # - name: Check if Attic endpoint is reachable - # id: check_attic - # run: | - # if curl --connect-timeout 20 --silent --head https://cache.osbm.dev | grep "200 OK"; then - # echo "Attic endpoint is reachable" - # echo "reachable=true" >> $GITHUB_OUTPUT - # else - # echo "Attic endpoint is not reachable" - # echo "reachable=false" >> $GITHUB_OUTPUT - # fi + - name: Check if Attic endpoint is reachable + id: check_attic + run: | + if curl --connect-timeout 20 --silent --head https://cache.osbm.dev | grep "200 OK"; then + echo "Attic endpoint is reachable" + echo "reachable=true" >> $GITHUB_OUTPUT + else + echo "Attic endpoint is not reachable" + echo "reachable=false" >> $GITHUB_OUTPUT + fi - name: Curl the cache run: | curl --connect-timeout 20 --silent https://cache.osbm.dev/main/nix-cache-info || echo "Cache endpoint not reachable" - name: Setup Attic cache - # if: steps.check_attic.outputs.reachable == 'true' + if: steps.check_attic.outputs.reachable == 'true' uses: ryanccn/attic-action@v0.3.1 with: endpoint: https://cache.osbm.dev From 606edf47947fb303e5a5f815ffbb8e3ce74f5583 Mon Sep 17 00:00:00 2001 From: osbm Date: Thu, 18 Sep 2025 08:51:16 +0300 Subject: [PATCH 28/28] Revert "a man can dream" This reverts commit ed33e038a72bbec33cadd171f2da897e77799860. --- .github/workflows/ci.yml | 28 ++++++++++++++-------------- flake.nix | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 194a032..c8e831c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,15 +28,15 @@ jobs: with: system: ${{ matrix.system }} - # - name: Login to tailscale - # uses: tailscale/github-action@v3.2.3 - # with: - # oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} - # oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} - # hostname: ${{ matrix.system == 'x86_64-linux' && 'github-actions-x86-64-linux' - # || matrix.system == 'aarch64-linux' && 'github-actions-aarch64-linux' - # || matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }} - # tags: tag:ci + - name: Login to tailscale + uses: tailscale/github-action@v3.2.3 + with: + oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} + oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} + hostname: ${{ matrix.system == 'x86_64-linux' && 'github-actions-x86-64-linux' + || matrix.system == 'aarch64-linux' && 'github-actions-aarch64-linux' + || matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }} + tags: tag:ci # - name: Install and start Tailscale # run: | @@ -58,13 +58,13 @@ jobs: # --advertise-tags="tag:ci" \ # --accept-routes - # - name: Tailscale status - # run: tailscale status || true + - name: Tailscale status + run: tailscale status || true - name: Check if Attic endpoint is reachable id: check_attic run: | - if curl --connect-timeout 20 --silent --head https://cache.osbm.dev | grep "200 OK"; then + if curl --connect-timeout 20 --silent --head http://wallfacer.curl-boga.ts.net:7080 | grep "200 OK"; then echo "Attic endpoint is reachable" echo "reachable=true" >> $GITHUB_OUTPUT else @@ -74,13 +74,13 @@ jobs: - name: Curl the cache run: | - curl --connect-timeout 20 --silent https://cache.osbm.dev/main/nix-cache-info || echo "Cache endpoint not reachable" + curl --connect-timeout 20 --silent http://wallfacer.curl-boga.ts.net:7080/main/nix-cache-info || echo "Cache endpoint not reachable" - name: Setup Attic cache if: steps.check_attic.outputs.reachable == 'true' uses: ryanccn/attic-action@v0.3.1 with: - endpoint: https://cache.osbm.dev + endpoint: http://wallfacer.curl-boga.ts.net:7080 cache: main token: ${{ secrets.ATTIC_TOKEN }} diff --git a/flake.nix b/flake.nix index cf3b069..03dac0a 100644 --- a/flake.nix +++ b/flake.nix @@ -4,7 +4,7 @@ nixConfig = { extra-substituters = [ "https://nix-community.cachix.org" - "https://cache.osbm.dev/main" + "http://wallfacer.curl-boga.ts.net:7080/main" ]; extra-trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="