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.
Elephant loads its main configuration from elephant/elephant.toml. Write the generated settings there instead of elephant/config.toml so services.elephant.settings is applied.
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.
Shell session variables do not reach launchd agents, leaving programs
that honor NIX_SSL_CERT_FILE on their fallback trust bundle.
Pass the selected nix-darwin bundle through a shared POSIX wrapper only
when neither certificate variable is set. Preserve explicit and inherited
values, including empty ones, custom launcher interpreters, and the
wait-for-store ordering.
Prefer security.pki.environment when available so agents also receive
nix-darwin's filtered fallback when system certificate installation is
disabled. Retain the environment.variables lookup for older versions.
Cover both launch modes, fish launchers, certificate overrides, and
unconfigured hosts in the existing launchd tests.
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>
Evaluating `xdg.mimeApps.defaultApplicationPackages` is slow. In my setup it takes over a minute. The new implementation makes this instantaneous.
Co-authored-by: Austin Horstman <khaneliman12@gmail.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>
Set `Unit.X-Restart-Triggers` on `activitywatch.service` and
`activitywatch-watcher-<name>.service` when their respective `settings`
are non-empty so Home Manager activation restarts them when their
generated TOML configuration changes.
- Extract `serverSettingsFile` and `watcherSettingsFile` helpers so both
`xdg.configFile` and `X-Restart-Triggers` reference the same generated
derivations without changing derivation names.
- Guard `X-Restart-Triggers` with `lib.mkIf (cfg.settings != { })` to
match `xdg.configFile` generation.
- Update `activitywatch` NMT tests to assert `X-Restart-Triggers`
presence when settings are configured and absence when settings are
empty.
The unit's ExecStart referenced pkgs.snixembed, so setting
services.snixembed.package had no effect.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
swayidle is typically used to start a screen locker, such as swaylock
in the module's own examples. Even when daemonised, the locker remains
in the swayidle.service cgroup, which systemd fully kills with the
default `KillMode=control-group` whenever the service is stopped or
restarted. This happens on Home Manager activation when the unit
changes, such as after a package update.
Killing an active ext-session-lock client leaves the session locked
without any client able to unlock it. Sway then shows a solid red
screen, with no way to unlock until another locker is started.
With `KillMode=process`, only swayidle itself is stopped, and the
commands it spawned keep running.
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>
Home Manager's checkLinkTargets activation step fails if anything other
than a symlink into a *-home-manager-files store path occupies one of
fonts.fontconfig.configFile's targets under ~/.config/fontconfig/conf.d/.
On KDE this happens after a rebuild: when the Fonts KCM D-Bus-activates
org.kde.fontinst, its addDir() picks one user fontconfig file (fonts.conf,
or else the first config file under $HOME) and, if that file does not yet
list the user font directory, adds it and writes the file back through
FcAtomic. The managed symlink becomes a regular file, and the next
activation fails with "Existing file ... would be clobbered" until it is
removed by hand.
Default the generated xdg.configFile entries to force = true when the
target follows the default "<priority>-hm-<label>.conf" scheme, which is
Home Manager's own namespace. A custom target such as 50-user.conf keeps
the collision check, and mkDefault lets users opt in or out through
xdg.configFile.<name>.force.
Fixes#6221.
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>