Skip to content

Commit 58c84b9

Browse files
authored
Update update-flakes.yml
1 parent 80ad6a2 commit 58c84b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/update-flakes.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ jobs:
1919
- name: Install Nix and Setup Caching
2020
uses: cachix/install-nix-action@v22
2121
with:
22+
# 修复 Nix 版本过低导致的错误:强制安装 2.20.0 版本
23+
nix_version: '2.20.0'
2224
nix_path: nixpkgs=channel:nixos-unstable
2325
cache-nix-paths: true
2426

2527
- name: Update flake lock
2628
run: nix flake update
2729

2830
# 验证构建:使用您的主机名 'nixos' 确保更新后的依赖不会破坏构建
29-
- name: Verify Build
31+
- name: Verify Build (Host: nixos)
3032
run: nix build .#nixosConfigurations.nixos.config.system.build.toplevel
3133

3234
- name: Commit changes

0 commit comments

Comments
 (0)