Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 45 additions & 2 deletions home/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,44 @@ let
# See pkgs/latest-cli/default.nix for the rationale, the tradeoffs, and the
# list of things deliberately NOT bumped.
latestCli = pkgs.callPackage ../../pkgs/latest-cli { };
# TEMPORARY (developing-today/code#4005, found via #2715): the
# activitywatch service below takes its package from this input's
# raw legacyPackages, and on the current stable pin (086873f3)
# activitywatch is broken exactly as on the nixpkgs-25 pin: aw-core
# 0.5.17 needs peewee 3 (peewee 4 removed SqliteExtDatabase, which
# aw_datastore imports) while the tree ships peewee 4.4.0, and
# aw-qt's makeWrapperArgs use the single-string form the tree's C
# makeWrapper rejects. Extend the stable set with the same
# overrides as nixpkgs-25-fixed in nixos/environment/default.nix
# (peewee pinned to 3.17.9 without cython; aw-qt wrapper args in
# split form). Remove once stock activitywatch builds on the pin;
# tracked in #4005.
nixpkgs-stable-fixed = inputs.nixpkgs-stable.legacyPackages.${system}.extend (
final: prev: {
python314 = prev.python314.override {
packageOverrides = self: super: {
peewee = super.peewee.overridePythonAttrs (old: {
version = "3.17.9";
src = prev.fetchPypi {
pname = "peewee";
version = "3.17.9";
hash = "sha256-/hXNABdY4yTI48qMjtkA5zl8KQcpF4nh78OD5mubx6g=";
};
buildInputs = [ prev.sqlite ];
});
};
};
python3Packages = final.python314.pkgs;
aw-qt = prev.aw-qt.overridePythonAttrs (old: {
makeWrapperArgs = [
"--suffix"
"PATH"
":"
(prev.lib.makeBinPath [ prev.xdg-utils ])
];
});
}
);
# Vendored from nixpkgs master; see the header in that file for why. Provides
# `agy_acp_server`, which t3code's AcpRegistryDriver can drive.
antigravity-acp = pkgs.callPackage ../../pkgs/antigravity-acp { };
Expand Down Expand Up @@ -424,7 +462,7 @@ in
# };
activitywatch = {
enable = true;
package = inputs.nixpkgs-stable.legacyPackages.${pkgs.system}.activitywatch;
package = nixpkgs-stable-fixed.activitywatch;
};
};
# OpenChamber rewrites opencode's config on every launch, migrating the v1
Expand Down Expand Up @@ -1043,7 +1081,12 @@ in
# the link and reloads OpenChamber, which hands its OpenCode over in place.
home.activation.openchamberDeploy = lib.hm.dag.entryAfter [ "reloadSystemd" ] ''
state="''${XDG_STATE_HOME:-$HOME/.local/state}/openchamber/deployed"
key='${deployKey "openchamber" [ openchamberStart openchamberUnitStart ]}'
key='${
deployKey "openchamber" [
openchamberStart
openchamberUnitStart
]
}'
link="$HOME/.local/state/openchamber/bin/opencode"
target="${inputs.opencode.packages.${system}.opencode}/bin/opencode"
previous="$(readlink "$link" 2>/dev/null || true)"
Expand Down
93 changes: 91 additions & 2 deletions nixos/environment/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,95 @@ let
# bakes hyprctl into its PATH must use the matching one, or it will ship the
# nixpkgs 0.56.2 hyprctl and drag a second hyprland into the closure.
hyprland-master = inputs.hyprland.packages.${system}.hyprland;
# TEMPORARY (developing-today/code#4005, found via #2715): the
# nixpkgs-25 segment below takes activitywatch from this input's
# raw legacyPackages, and on the current pin (31ecbaca) it is
# broken twice over. (1) aw-core 0.5.17 pins peewee==3.* and its
# datastore imports SqliteExtDatabase from playhouse.sqlite_ext,
# which peewee 4 removed; the tree now ships peewee 4.4.0, so
# aw-core fails its runtime-deps check and would be broken at
# runtime too -- a relaxDeps would only mask that. Pin peewee to
# 3.17.9 (the last 3.x) for this set's python packages instead,
# dropping cython from its buildInputs: 3.17.9's vendored .pyx
# sources no longer compile under the tree's Cython 3, and peewee
# builds fine from its pre-generated C sources without it.
# (2) aw-qt's makeWrapperArgs use the single-string form
# "--suffix PATH : ...", which the tree's C makeWrapper rejects
# ("Unknown argument"); restate them in split form. The same
# peewee skew exists on the current master and unstable pins, so
# no pin offers a consistent set. Remove this binding and use the
# raw legacyPackages again once stock activitywatch builds on the
# pin; tracked in #4005.
nixpkgs-25-fixed = inputs.nixpkgs-25.legacyPackages.${system}.extend (
final: prev: {
python314 = prev.python314.override {
packageOverrides = self: super: {
peewee = super.peewee.overridePythonAttrs (old: {
version = "3.17.9";
src = prev.fetchPypi {
pname = "peewee";
version = "3.17.9";
hash = "sha256-/hXNABdY4yTI48qMjtkA5zl8KQcpF4nh78OD5mubx6g=";
};
buildInputs = [ prev.sqlite ];
});
};
};
python3Packages = final.python314.pkgs;
aw-qt = prev.aw-qt.overridePythonAttrs (old: {
makeWrapperArgs = [
"--suffix"
"PATH"
":"
(prev.lib.makeBinPath [ prev.xdg-utils ])
];
});
}
);
# TEMPORARY (developing-today/code#3906, found via #2715): the
# nixpkgs-master segment below takes haskellPackages.misfortune from
# this input's raw legacyPackages, and on the current master pin
# haskellPackages.regex-pcre (misfortune's dependency) no longer
# builds: nixpkgs' Haskell builder stopped adding the pkg-config
# wrapper and the pkgconfig-depends libraries to Haskell build
# environments, and nixpkgs removed the EOL pcre C library outright,
# while regex-pcre's Cabal configure hard-requires both. Extend the
# master set with an overlay that restores regex-pcre's old build
# environment: pkg-config plus a minimal vendored pcre 8.45 (the
# version the old pins shipped; test suite disabled). Remove this
# binding and use the raw legacyPackages again once stock
# regex-pcre builds on the master pin; tracked in #3906.
nixpkgs-master-fixed = inputs.nixpkgs-master.legacyPackages.${system}.extend (
final: prev:
let
pcre_8_45 = prev.stdenv.mkDerivation {
pname = "pcre";
version = "8.45";
src = prev.fetchurl {
url = "mirror://sourceforge/project/pcre/pcre/8.45/pcre-8.45.tar.bz2";
sha256 = "sha256-Ta5v3NK7C7bDe1+Xwzwr6VTadDmFNpzdrDVG4yGL/7g=";
};
nativeBuildInputs = [ prev.updateAutotoolsGnuConfigScriptsHook ];
configureFlags = [
"--enable-unicode-properties"
"--disable-cpp"
"--enable-jit=auto"
];
hardeningDisable = [ "shadowstack" ];
doCheck = false;
};
in
{
haskellPackages = prev.haskellPackages.override {
overrides = self: super: {
regex-pcre = super.regex-pcre.overrideAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ prev.pkg-config ];
buildInputs = (old.buildInputs or [ ]) ++ [ pcre_8_45 ];
});
};
};
}
);
espIdf5 = inputs.esp-dev.packages.${system}.esp-idf-full;
espIdf6 = inputs.esp-dev-6.packages.${system}.esp-idf-full;
mkEspIdfSystemPackage =
Expand Down Expand Up @@ -702,7 +791,7 @@ in
jdk21
androidSdk.androidsdk
])
++ (with inputs.nixpkgs-25.legacyPackages.${system}; [ activitywatch ])
++ (with nixpkgs-25-fixed; [ activitywatch ])
++ (with inputs.nixpkgs-stable.legacyPackages.${system}; [ ])
++ (with inputs.nixpkgs-unstable.legacyPackages.${system}; [
# AI coding agents. Kept on the unstable channel rather than master
Expand Down Expand Up @@ -731,7 +820,7 @@ in
zed-editor
# opencode
])
++ (with inputs.nixpkgs-master.legacyPackages.${system}; [
++ (with nixpkgs-master-fixed; [
# rclone # fish completions broke 2025-04-03
# rclone-browser # fish completions broke 2025-04-03
# rclone-ui # fish completions broke 2025-04-03
Expand Down
111 changes: 111 additions & 0 deletions nixos/nixpkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,117 @@
overlays = [
inputs.self.vimOverlay.${system}
inputs.yazi.overlays.default
# TEMPORARY (code#4167, found via code#2715): awscli 1.44.21
# fails pythonRuntimeDepsCheck on the current pins -- it pins
# botocore==1.42.31 and s3transfer>=0.16.0,<0.17.0, but every
# pin now ships botocore 1.43.79 and s3transfer 0.19.2 (the tree
# is mid-transition). awscli's own expression notes botocore
# must not be relaxed (the two are developed in lockstep), so
# give awscli dedicated botocore/s3transfer derivations rolled
# back to the versions it pins; the set's botocore/s3transfer
# stay current for all other consumers. Remove once stock
# awscli passes the check again; tracked in code#4167.
(
final: prev:
let
botocore_1_42_31 = prev.python3Packages.botocore.overridePythonAttrs (old: {
version = "1.42.31";
src = prev.fetchFromGitHub {
owner = "boto";
repo = "botocore";
tag = "1.42.31";
hash = "sha256-avuv1uXKMeSr3SL+BI9XW8tDCQM/dlXFn590di3S03k=";
};
});
s3transfer_0_16_0 = prev.python3Packages.s3transfer.overridePythonAttrs (old: {
# s3transfer itself depends on the set's botocore; point it
# at the pinned one too, or awscli's closure contains both
# botocores and pythonCatchConflictsPhase fails the build.
dependencies = map (d: if (d.pname or "") == "botocore" then botocore_1_42_31 else d) (
old.dependencies or [ ]
);
version = "0.16.0";
src = prev.fetchFromGitHub {
owner = "boto";
repo = "s3transfer";
tag = "0.16.0";
hash = "sha256-dpDlsZtLjd6r4kLkIDPG6ZPFFs6/4elYiHk2HDpa9+4=";
};
});
in
{
awscli = prev.awscli.overridePythonAttrs (old: {
# The expression's installCheck greps `aws --version` for
# the SET's botocore version; with the pairing overridden
# it must grep for the pinned one instead (same assertion,
# pairing actually in force).
installCheckPhase = ''
runHook preInstallCheck

$out/bin/aws --version | grep "1.42.31"
$out/bin/aws --version | grep "1.44.21"

runHook postInstallCheck
'';
dependencies = map (
d:
if (d.pname or "") == "botocore" then
botocore_1_42_31
else if (d.pname or "") == "s3transfer" then
s3transfer_0_16_0
else
d
) old.dependencies;
});
}
)
# TEMPORARY (code#4277, found via code#2715): cargo-llvm-cov's
# test suite fails deterministically on the current pins --
# rustc 1.99's coverage instrumentation writes raw profile
# format version 11, but no stock llvm-profdata in the tree can
# merge it: llvm 21 and 22 expect version 10 ("raw profile
# version mismatch"), and llvm 23 parses v11 but reports
# "number of counters is zero" (all three pairings tried, 14 of
# 20 integration tests fail each time). The expression's own
# header comment names this failure mode and notes the tool
# still functions properly in actual use (at runtime it drives
# the user's llvm-profdata), so skip its test suite until the
# toolchain pairing is consistent again. Remove once stock
# cargo-llvm-cov passes its suite; tracked in code#4277.
(final: prev: {
cargo-llvm-cov = prev.cargo-llvm-cov.overrideAttrs (old: {
doCheck = false;
});
})
# TEMPORARY (code#2727, found via code#2715): patchelf 0.19.2 in
# current nixpkgs corrupts the official Node.js 24.22.1 binary that
# nix-openclaw repacks for OpenClaw -- the repacked `node` segfaults
# on startup, its installCheck fails, and the failure cascades
# openclaw -> home-manager -> toplevel. Proven 2026-10-30: the
# pristine binary patched with patchelf 0.15.2 runs; the same binary
# patched with 0.19.2 segfaults (gcc and glibc are identical across
# the old/new pins and are not involved). The `patchelf` attribute
# itself cannot be overridden (it is a nixpkgs bootstrap package;
# overriding it breaks stdenv bootstrap evaluation), so the
# autoPatchelfHook -- which resolves `patchelf` from PATH at build
# time -- additionally propagates a patchelf 0.15.2 built from this
# same package set. This overlay must precede the nix-openclaw
# overlay below so that overlay's packages see the fixed hook.
# Remove once the stock hook patches the Node.js repack cleanly
# again; the removal test is in code#2727.
(final: prev: {
autoPatchelfHook = prev.autoPatchelfHook.overrideAttrs (old: {
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [
(prev.patchelf.overrideAttrs (oldPatchelf: {
version = "0.15.2";
src = prev.fetchurl {
url = "https://github.com/NixOS/patchelf/releases/download/0.15.2/patchelf-0.15.2.tar.bz2";
hash = "sha256-F3RfVkFZyOIo/EEtplogSLhGxLa0Igt3y/IkFuAvLXw=";
};
}))
];
});
})
# Provides pkgs.openclaw + pkgs.openclawPackages for home/openclaw.
inputs.nix-openclaw.overlays.default
# inputs.waybar.overlays.default # ?? !! style.css
Expand Down
Loading