From 3ef136b39162d81a79c7878e1d591b8d06f966e9 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Sun, 15 Mar 2026 11:52:17 +0100 Subject: [PATCH 1/3] feat: add my cache server. --- modules/linux/nixos/nix-options.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/linux/nixos/nix-options.nix b/modules/linux/nixos/nix-options.nix index eafdde8..8b5e9b0 100644 --- a/modules/linux/nixos/nix-options.nix +++ b/modules/linux/nixos/nix-options.nix @@ -15,6 +15,7 @@ "https://cache.nixos-cuda.org" "https://deploy-rs.cachix.org" "https://attic.xuyh0120.win/lantian" + "https://cache.cronyakatsuki.xyz/server" ]; trusted-substituters = [ "https://hyprland.cachix.org" @@ -27,6 +28,7 @@ "cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M=" "deploy-rs.cachix.org-1:xfNobmiwF/vzvK1gpfediPwpdIP0rpDV2rYqx40zdSI=" "lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc=" + "server:H3UiSzK++1xgvbI/0BgWc2Ug/srJ45x05Zc9DqNUsxM=" ]; }; From 79dd241e785b62487da4e011f88dbfe5743b496c Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Sun, 15 Mar 2026 11:52:26 +0100 Subject: [PATCH 2/3] feat: make sure to only run one job at a time. --- modules/servers/per-server/baldur/services/forgejo-runner.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/servers/per-server/baldur/services/forgejo-runner.nix b/modules/servers/per-server/baldur/services/forgejo-runner.nix index 6a8a95d..6905eb0 100644 --- a/modules/servers/per-server/baldur/services/forgejo-runner.nix +++ b/modules/servers/per-server/baldur/services/forgejo-runner.nix @@ -41,4 +41,6 @@ size = 16 * 1024; # 16 GB } ]; + + nix.settings.max-jobs = 1; } From ca4ca49ffd6ca2a2dab70c04ea8c4c1507b75660 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Sun, 15 Mar 2026 11:52:39 +0100 Subject: [PATCH 3/3] feat: build cache for my other arm servers. --- .forgejo/workflows/cache.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.forgejo/workflows/cache.yaml b/.forgejo/workflows/cache.yaml index ef0c143..900b4c1 100644 --- a/.forgejo/workflows/cache.yaml +++ b/.forgejo/workflows/cache.yaml @@ -6,18 +6,19 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@v5 - # - name: Install nix - # uses: https://github.com/cachix/install-nix-action@v31 - # - name: Setup system cache - # uses: actions/cache@v3 - # with: - # path: /nix/store - # key: nix-cache - name: Setup Attic cache uses: https://github.com/ryanccn/attic-action@v0 with: endpoint: ${{ secrets.ATTIC_ENDPOINT }} cache: ${{ secrets.ATTIC_CACHE }} token: ${{ secrets.ATTIC_TOKEN }} + - name: Build baldur configuration + run: nix build .#nixosConfigurations.baldur.config.system.build.toplevel + - name: Build bragi configuration + run: nix build .#nixosConfigurations.bragi.config.system.build.toplevel + - name: Build thor configuration + run: nix build .#nixosConfigurations.thor.config.system.build.toplevel + - name: Build odin configuration + run: nix build .#nixosConfigurations.odin.config.system.build.toplevel - name: Build freyja configuration run: nix build .#nixosConfigurations.freyja.config.system.build.toplevel