2415 Commits

Author SHA1 Message Date
Austin Horstman
f06f91ad43 senpai: use xdg.configHome on darwin when xdg.enable is set
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.
2026-12-05 22:38:18 -06:00
Abhraneel Mukherjee
df57e4d27a git: don't count difftastic as conflicting in "difftool" mode 2026-12-05 22:27:47 -06:00
ps1ph3r
8b06e95295 ov: add module 2026-12-05 22:17:57 -06:00
Sanket Patel
907ce248a7 git: use configured ssh package for signing
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.
2026-12-05 22:16:12 -06:00
zeno
d1cf0f656e codex: respect dry-runs when cleaning plugin caches 2026-12-04 10:20:40 -06:00
Sanket Patel
2804134ce5 imv: render options section before other sections
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.
2026-12-02 22:24:39 -06:00
Sanket Patel
e4338d4dc5 elephant: write configuration to elephant.toml
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.
2026-12-02 22:23:02 -06:00
Austin Horstman
cc9089ae58 launchd: provide standalone certificate fallback
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.
2026-12-02 22:22:46 -06:00
Austin Horstman
fe2e84b2b4 launchd: inherit nix-darwin certificate bundle
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.
2026-12-02 22:22:46 -06:00
Austin Horstman
52e61a24f8 mozilla-messaging-hosts: stop linking placeholder .keep file
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
2026-12-02 22:22:26 -06:00
Nicolai Weitkemper (with AI)
59203fe214 tere: add module
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>
2026-12-02 10:01:21 -06:00
Sanket Patel
32b818c2c0 atuin: use default daemon socket path on launchd (#10240)
* 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.
2026-12-02 10:00:53 -06:00
Oikantik Basu
9612173dce atuin: honor settings in precomputed fish init
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.
2026-12-02 10:00:22 -06:00
Vivek Revankar
f50c9da029 ssh-agent: support askpass 2026-12-02 14:50:10 +01:00
Clément DOUIN
295f61acff comodoro: 0.1.2 -> 2.0.0 2026-12-02 11:12:59 +01:00
Aleksey Sidorov
877b0e8cbd starship: generate Nushell initialization at runtime 2026-12-02 08:46:22 +01:00
Sanket Patel
b2cbfaf1a2 browserpass: use xdg.configHome for native messaging hosts 2026-12-02 08:18:35 +01:00
Richard Souza
54f903fdaa gtt: add module 2026-11-26 21:03:50 -06:00
Doro Rose
0ed534a267 nh: put nix on PATH of the nh-clean launchd agent
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>
2026-11-26 21:02:23 -06:00
Yethal
5ef710576b nushell: add completions support 2026-11-26 09:26:10 -06:00
André Schröder
18bb6b5512 xdg-mime-apps: improve speed of xdg.mimeApps.defaultApplicationPackages
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>
2026-11-26 09:20:14 -06:00
nkmryu
b5fc2a9c99 granted: add bash integration
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>
2026-11-26 09:18:38 -06:00
Alex
274526355e shpool: respect the systemd option 2026-11-26 09:14:47 -06:00
Bad3r
1847199e48 activitywatch: restart services when their settings change
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.
2026-11-26 09:08:13 -06:00
qacow37
567216631d rmpc: added themes option
rmpc misses a themes option to create and configure theme files.
2026-11-26 10:45:23 +01:00
Alex
6a13737c0e snixembed: use configured package in systemd service
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>
2026-11-25 16:03:17 +01:00
Skye J
3b8140d21f thunderbird: add ldap support 2026-11-22 10:59:17 -06:00
Léana
03885bcd0b starship: don't run when in TTY
Implements #8841. Don't run starship when in TTY.

Upstream is reluctant to implement an alternative ascii style display
when TTY is detected due to the extra complexity.
This problem has been present since 2022.

Related: https://github.com/starship/starship/issues/4453
Related: https://github.com/starship/starship/issues/4000
2026-11-22 10:33:58 +01:00
euxane
b87bdaacbf swayidle: keep spawned commands alive on service stop
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.
2026-11-22 10:31:08 +01:00
Austin Horstman
288b2506ab tests: drop redundant buildPackages overlays
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.
2026-11-22 10:30:20 +01:00
Austin Horstman
a76d555f12 wayprompt: remove module
Nixpkgs removed wayprompt because it failed to build and lacks upstream
maintenance. Report the removal through an explicit option assertion and
news entry.
2026-11-21 22:50:22 -06:00
Damien Cassou
6857c7f7c3 borgmatic: add configuration file checking 2026-11-21 14:42:48 +01:00
Austin Horstman
2b13c9cb3a tests: stub packages automatically on Darwin
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.
2026-11-17 18:59:36 -06:00
Austin Horstman
05bc4c632b tests: request real packages explicitly in Darwin tests
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.
2026-11-17 18:59:36 -06:00
repparw
4246683484 programs/t3code: respect dry runs and quote theme paths
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.
2026-11-17 16:16:22 -06:00
Ulises Britos
1b939f3e16 programs/t3code: add declarative environment themes
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.
2026-11-17 16:16:22 -06:00
Austin Horstman
9f44bda859 oyui: fix Darwin test paths
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.
2026-11-17 15:38:44 -06:00
Maximilian Roos
6e4bcf6931 worktrunk: run Claude Code hooks through wt config plugins claude hook
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.
2026-11-17 13:44:35 -06:00
Weathercold
9d2c9ce91e oyui: add module 2026-11-17 13:24:44 -06:00
Weathercold
59c93e3079 jujutsu: remove config dir compatibility with jj <0.29.0
That version was a long time ago

This change also makes `programs.jujutsu.package`
actually nullable as allowed by its type.
2026-11-17 13:24:44 -06:00
kimhappy
9d7ba6bef3 warp-terminal: add module
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>
2026-11-16 15:52:10 -06:00
Shun Ueda
b4ac66534c awscli: support xdg dirs 2026-11-16 15:51:37 -06:00
Goremil
fafdbda4b5 fontconfig: force-overwrite generated conf.d entries
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.
2026-11-16 15:50:18 -06:00
Francesco Noacco
a1293da7dd direnv: load nushell export output even when direnv fails
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.
2026-11-14 22:01:49 -06:00
hectorgray
82ce401aa3 arf: add module 2026-11-09 20:47:38 -06:00
Austin Horstman
e7b381cc7d thunderbird: test contact settings overrides
Cover extra address-book preferences and precedence over generated values while keeping contact settings scoped to the selected profile.
2026-11-09 15:36:08 -06:00
Austin Horstman
b7e769e997 mise: run Nushell session checks only for runtime activation
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.
2026-11-09 15:13:46 -06:00
Austin Horstman
c4487c8011 opencode: pin disabled layer test to OpenCode 1
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.
2026-11-09 15:13:46 -06:00
Marc Bornand
f1db7c474b git-credentials-keepassxc: add unlock option
Add an option to automatically unlock keepassxc.

Better help enable descriptions and unsigned ints:
Co-authored-by: Austin Horstman <khaneliman12@gmail.com>
2026-11-09 13:32:01 -06:00
Daniel Lazaro
80142a6eda infat: run auto-activation after linkGeneration
The activation step reads the config file written by home.file, so it
must run after linkGeneration.
2026-11-09 13:31:04 -06:00