senpai 0.5.0 honors XDG_CONFIG_HOME on macOS when set and falls back to
~/Library/Application Support otherwise. When xdg.enable is true, Home
Manager exports XDG_CONFIG_HOME, so writing senpai.scfg to
Library/Application Support causes senpai to prompt to migrate the
configuration file on every start.
Match other modules such as lazygit and poetry by only using
Library/Application Support on Darwin when xdg.enable is false.
When programs.ssh is enabled with a custom package, use that package's ssh-keygen as the default SSH signing program. Keep the pkgs.openssh fallback otherwise so existing configurations are unchanged.
imv applies suppress_default_binds while reading the options section. Rendering sections alphabetically placed binds first, causing the option to clear custom keybindings. Use the DAG-aware INI generator to order options ahead of the remaining sections while retaining the existing renderer when no ordering is required.
Standalone agents cannot rely on shell environment variables or Home
Manager updating a system-wide certificate bundle. Prefer the system
bundle and use cacert from Home Manager's Nixpkgs input only when that
path is missing, without modifying system certificates.
Use a small native stat predicate to distinguish ENOENT from permission
and path errors. Preserve explicit certificate variables, including empty
values, and leave nix-darwin's configured bundle selection unchanged.
Cover the absence predicate and update affected launchd fixtures for the
shared command change.
Enabling Thunderbird or Firefox always adds the wrapped package to the
native messaging hosts join, so the shared module linked a .keep file
into ~/.mozilla/native-messaging-hosts even when no hosts were
configured. The placeholder only existed to guarantee that the joined
lib/mozilla/native-messaging-hosts source path was present.
Create that directory in the join's postBuild instead. An empty
directory produces no links in the home directory, while real host
manifests are linked as before. Whole packages are still joined rather
than using stripPrefix, so relative manifest links such as
passff-host's keep resolving inside the join.
Also flatten nativeMessagingHosts before checking emptiness so Linux's
nested [ firefox thunderbird ] list does not emit an empty
~/.mozilla/native-messaging-hosts join when only LibreWolf is enabled.
Fixes#10116
Adds programs.tere, which installs tere and sets up the shell wrapper
it needs to change the current directory on exit, for Bash, Zsh, Fish
and Nushell.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* atuin: add launchd socket path regression tests
* atuin: use default daemon socket path on launchd
Atuin 18.24.0 and later creates the parent directory only for its own default socket path. Keep the legacy XDG socket path default for older versions, but let newer versions use their default path under launchd.
Give fish initialization the declarative settings it uses while leaving runtime paths in the managed configuration. Exercise the generated script with the pinned Atuin in the fish test.
launchd starts agents with a minimal PATH (/usr/bin:/bin:/usr/sbin:/sbin)
that has no nix. nh needs it to run `nix --version` and the garbage
collection, so every scheduled run failed with
Error: No output from nix --version command
and exited 1 without cleaning anything.
Set PATH to the bin directory of `nix.package`, falling back to
`pkgs.nix`, the same way services.nix-gc and
services.home-manager.autoUpgrade pick the nix package.
The systemd service is unaffected on NixOS, where the user manager
inherits a login PATH from pam_env.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The module only sets up the assume wrapper function for Zsh and Fish.
In Bash, assume runs as a plain executable, so it can't export the
credentials into the current shell.
The assume script already supports being sourced from Bash (it checks
BASH_SOURCE), so use the same wrapper function there. Move the function
into a let binding that Bash and Zsh share, like the yazi module does.
The generated Zsh configuration does not change.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The kodi, starship, opencode and DAG-ordered format tests each added an
overlay that pinned real build tools (libxslt, check-jsonschema,
remarshal) into `buildPackages`. The test whitelist used to rebuild
`buildPackages` with an overlay of its own, which gave those tools
different derivations than the ones in the binary cache. Pinning the
real ones avoided building them from source.
The whitelist now takes `buildPackages` from the package set that is
already evaluated, so these tools are the real ones without any help.
The derivations of the affected tests are unchanged on x86_64-linux and
aarch64-darwin, and the tests no longer evaluate Nixpkgs a second time.
Nixpkgs removed wayprompt because it failed to build and lacks upstream
maintenance. Report the removal through an explicit option assertion and
news entry.
Darwin tests used real packages unless the package name was listed in
darwinScrublist.nix. Every new module test could therefore pull a real
package build into the Darwin test run until someone added the name to
the list.
Scrubbing the whole package set failed on Darwin because the whitelist
extended `buildPackages`. That evaluates Nixpkgs a second time with the
whitelisted packages injected into every stdenv bootstrap stage, and the
Darwin stdenv asserts that the `gettext` and `jq` of those stages were
built by the bootstrap compiler. Scrubbing itself was never the problem:
it is applied to a copy of the package set outside the Nixpkgs fixpoint,
so the stdenv never sees a stub.
Take `buildPackages` from the package set that is already evaluated. It
provides the same build tools without the second evaluation, so Darwin
can use the same scrubbing as Linux and the list is no longer needed.
Linux test derivations do not change.
The glance launchd fixture and the sketchybar Lua test now see stub
markers where they used to see store paths.
Several tests only pass on Darwin because most packages are real there:
the dock tests run Python taken from `pkgs`, the podman tests read the
default policy file from skopeo, and the man cache test needs an
installed package that ships manual pages. On Linux the man cache test
passes only because shared-mime-info is installed and never stubbed.
Request those packages explicitly, so the tests do not depend on which
packages the harness leaves unstubbed.
A dry run wrote the theme files: the activation created the themes
directory and installed every theme even though DRY_RUN was set. Guard
the directory creation and report the theme instead of writing it, using
the same "Would ..." message as mkImpureConfigMerger.
A theme path containing a space failed to build, because the unquoted
interpolation split it into separate cp arguments. Escape the path so it
is passed as one argument.
The module test now runs the activation with DRY_RUN=1 against an empty
home and checks that nothing is written, and installs a theme whose file
name contains a space.
Allow JSON attribute sets or paths as theme sources. Copy them into the
T3 userdata directory as regular files, since its loader rejects symlinks.
Keep unmanaged themes intact and avoid rewriting unchanged files.
The config path on Darwin contains a space ("Library/Application
Support"), and the NMT helpers received it unquoted, so the shell split
it and the example test looked for "home-files/Library/Application".
The empty-config test passed only because the split path never exists.
The jujutsu integration test also used the Darwin path for jj, but the
jujutsu module always writes to the XDG config directory.
The module wrote its own command for each Claude Code hook, copied from
Worktrunk's plugin before the plugin moved every hook to one command that
reads the event from the hook payload. The copies have since drifted:
WorktreeCreate always passes --create, so reopening a kept worktree fails;
activity markers follow the shell's cwd instead of CLAUDE_PROJECT_DIR; and
an EnterWorktree into a Worktrunk worktree isn't approved.
Each hook now runs `wt config plugins claude hook`, the command the plugin
registers for every event, so hook behavior follows the installed `wt`.
This drops the jq dependency and needs worktrunk 0.81.0 or later.
Warp reads its settings, keybindings, themes, Tab Configs, default Tab
Configs, workflows, launch configurations, custom model routers, MCP
servers and agent skills from plain files, under XDG directories on
Linux and ~/.warp on macOS. Manage them declaratively, optionally
validate settings against the JSON schema bundled with the package, and
share servers from programs.mcp.
Signed-off-by: kimhappy <babtul21@gmail.com>
Starting nushell 0.111.0, pipefail is enabled by default. A non-zero
exit of `direnv export json` (e.g. on an `.envrc` or a `.env`, that has
not been explicitly allowed or blocked) raises an error in the middle
of the pipeline. That error aborts every pre_prompt hook registered
after direnv's. For instance, it stops atuin from finishing its history
entries, so commands run in such a directory are never recorded.
It also discards direnv's output, which is still meaningful on failure:
it unloads the environment of the directory being left and records the
blocked state, so the warning is shown only once. Other shells evaluate
it regardless of the exit status.
Run the export through `complete` so the exit status no longer raises
and stdout is always loaded. stderr is passed straight through, so
direnv's messages still show up as they happen.
The legacy case labels the locked mise as 2026.8.16 to select build-time
activation. Nixpkgs now ships mise 2026.10.17, which embeds the
generating PATH in its activation script, so the session PATH check
fails for the build-time output. That is the behavior the version gate
avoids for real users.
Keep the generated-file assertions for the legacy branch and start
Nushell only for runtime activation.
The test covers the tui.json layer, which only OpenCode 1 reads. It used
the default package, so the Nixpkgs update to OpenCode 2 added the
programs.opencode.tui warning. Use the OpenCode 1 stub like the enabled
layer test.
Add an option to automatically unlock keepassxc.
Better help enable descriptions and unsigned ints:
Co-authored-by: Austin Horstman <khaneliman12@gmail.com>
Add programs.tuicr for tuicr, a TUI for code review. The module writes
settings to config.toml, links local themes into the theme directory,
and makes the package nullable, so it can be installed elsewhere.
Poetry finds its config directory through platformdirs, which honours
XDG_CONFIG_HOME on macOS. With xdg.enable set, Home Manager exports
XDG_CONFIG_HOME, so Poetry reads $XDG_CONFIG_HOME/pypoetry/config.toml
and ignores the file written to ~/Library/Application Support.
Use the same condition as lazygit, k9s and other modules.
Every interactive shell ran `mkdir -p "$(dirname "$HISTFILE")"`, which
forks twice, even though the directory almost always exists. It costs
~10ms on macOS 27.
We now test if the directory exists first and use zsh's `:h` modifier
instead of dirname, so the most of the time no processes are started.
The directory is still created when missing.
Macros can now set an optional `description`, written as the final
argument of the `macro` command so it shows in the help screen.
Macros without a description generate the same output as before.
mandb may exit successfully without creating output when no manual pages
are available. Create the output directory before invoking it so the
man-cache derivation always has its declared output.
Add a regression test for an empty manual page set.
Fixes#9962