fix(home): make stateVersion overridable
All checks were successful
Check / eval (push) Successful in 3m1s
All checks were successful
Check / eval (push) Successful in 3m1s
Changed home.stateVersion assignment to use lib.mkDefault instead of a plain assignment. This fixes downstream flakes that need to migrate existing NixOS installations without bumping their state version. Verified: V1 (flake check --no-build, home activation package build). Pending: nothing.
This commit is contained in:
@@ -283,15 +283,7 @@ actually float once seen (regex tolerance for the `.…-wrapped` form).
|
|||||||
*Agents: append here with a one-paragraph pitch (what/why/cost). Do not
|
*Agents: append here with a one-paragraph pitch (what/why/cost). Do not
|
||||||
implement. Bernardo moves accepted items into a tier.*
|
implement. Bernardo moves accepted items into a tier.*
|
||||||
|
|
||||||
- **`home.stateVersion` should be `mkDefault`** (surfaced writing
|
|
||||||
docs/MIGRATION.md, 2026-07-08). `modules/home/default.nix:51` sets
|
|
||||||
`home.stateVersion = "26.05"` as a *plain* assignment, so a downstream
|
|
||||||
home.nix that needs a different value (anyone migrating an existing NixOS
|
|
||||||
install — their original install's stateVersion) can only override it with
|
|
||||||
`lib.mkForce`, which reads as a hack. Cheap fix: make it
|
|
||||||
`lib.mkDefault "26.05"` so a plain downstream assignment wins cleanly,
|
|
||||||
matching the mkDefault discipline the rest of the distro follows. (The
|
|
||||||
system side is already fine — the downstream owns system.nix outright.)
|
|
||||||
|
|
||||||
- **Battery charge-limit — make the toggle instant** `[blocked:hw]`
|
- **Battery charge-limit — make the toggle instant** `[blocked:hw]`
|
||||||
(follow-up to the preset toggle shipped 2026-07-07, iteration #55).
|
(follow-up to the preset toggle shipped 2026-07-07, iteration #55).
|
||||||
|
|||||||
@@ -17,6 +17,13 @@ Template:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## 2026-07-08 — home.stateVersion overridable (iteration #72)
|
||||||
|
- **Task:** PROPOSED item — `home.stateVersion` should be `mkDefault` to support migrations.
|
||||||
|
- **Did:** Changed `home.stateVersion = "26.05"` to `lib.mkDefault "26.05"` in `modules/home/default.nix`.
|
||||||
|
- **Verified:** V1 (flake check --no-build green; `homeConfigurations.nomarchy.activationPackage` built successfully).
|
||||||
|
- **Pending:** user visual review or nothing.
|
||||||
|
- **Next suggestion:** triage other PROPOSED items or await Bernardo for `[human]`-blocked tasks.
|
||||||
|
|
||||||
## 2026-07-08 — Stability + usefulness survey → 2 PROPOSED (iteration #71)
|
## 2026-07-08 — Stability + usefulness survey → 2 PROPOSED (iteration #71)
|
||||||
- **Task:** Bernardo asked to find the next tasks that make the distro more
|
- **Task:** Bernardo asked to find the next tasks that make the distro more
|
||||||
stable + more useful. Research iteration (LOOP §1: write up PROPOSED).
|
stable + more useful. Research iteration (LOOP §1: write up PROPOSED).
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
createDirectories = lib.mkDefault true;
|
createDirectories = lib.mkDefault true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.stateVersion = "26.05";
|
home.stateVersion = lib.mkDefault "26.05";
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
awww # wallpaper daemon with animated transitions (the swww fork)
|
awww # wallpaper daemon with animated transitions (the swww fork)
|
||||||
|
|||||||
Reference in New Issue
Block a user