Skip to content

Commit ee7f464

Browse files
committed
maintaining.md: add note about flake.nix / lock update
Signed-off-by: Austin Horstman <[email protected]>
1 parent ad0b497 commit ee7f464

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

MAINTAINING.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,22 @@ Reference commits:
121121
- Change `isReleaseBranch` from `false` to `true`
122122
- Do NOT change the `release` field (it's already correct from Step 1)
123123

124+
2. **flake.nix**
125+
- Update the nixpkgs input to track the corresponding stable branch
126+
- Example: For `release-25.11`, change from:
127+
```nix
128+
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
129+
```
130+
to:
131+
```nix
132+
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
133+
```
134+
- Run `nix flake update` to update flake.lock to the stable branch
135+
- Commit the flake.nix and flake.lock changes
136+
137+
**Note**: The release branch should track the stable NixOS release channel
138+
(e.g., `nixos-25.11`), while master continues to track `nixos-unstable`.
139+
124140
#### Step 3.5: On master - Update CI for the New Release Branch
125141
126142
**When**: After marking the release branch as a release branch (Step 3)

0 commit comments

Comments
 (0)