324 Commits

Author SHA1 Message Date
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
8773bc1314 home-manager: prepare 27.05
Bump the unstable release version on master to 27.05, add 27.05 to
home.stateVersion, create the 27.05 release notes page, update
flake.lock to nixpkgs-unstable 27.05, and drop the now-upstream
typeparameter maintainer entry.
2026-11-30 10:24:01 -06:00
Austin Horstman
1a36670baa home-manager: set 26.11 as stable
Prepare master to branch release-26.11 by updating documentation,
examples, default stateVersion values, release notes header, and
standalone init test fixtures to 26.11.
2026-11-30 10:15:59 -06:00
Austin Horstman
8d46279027 docs: complete 26.11 state version release notes
Add the missing 26.11 state version entry for
fonts.fontconfig.configFile.<name>.enable (introduced in c0436bc028) and
move the Vicinae 26.11 state version note from Highlights into State
Version Changes.
2026-11-30 09:27:45 -06:00
Skye J
3b8140d21f thunderbird: add ldap support 2026-11-22 10:59:17 -06: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
Drew Davis
194dfc4c77 gradle: respect preferXdgDirectories 2026-11-09 13:30:16 -06:00
Ulises Britos
623253a537 vicinae: gate native messaging integration per browser
For home.stateVersion >= 26.11, default enableFirefoxIntegration to the Firefox enable option and add an independent enableLibrewolfIntegration defaulting to the LibreWolf enable option. Missing browser modules default to disabled, supporting minimal configurations. Both options remain overridable for browsers installed outside Home Manager.

Earlier state versions preserve the previous defaults: Firefox integration defaults to true, and LibreWolf integration follows enableFirefoxIntegration.
2026-11-09 10:46:08 -06:00
Lisa Scheers
6750249c69 nushell: load session environment at runtime
Source the OS and Home Manager POSIX environment scripts when Nushell
starts so runtime HOME and USER expansions and profile paths match managed
POSIX shells.
2026-10-22 16:05:41 -05:00
Austin Horstman
5bf02bcfed docs: clarify new module contribution guidelines
Document recurring module design and testing expectations so contributors
can address them before review. Preserve upstream-specific exceptions
and configuration-only use when package installation is disabled.
2026-10-19 22:34:41 -05:00
Austin Horstman
cd5705dd9e fzf: document shell integration package requirements
Custom executable-only packages must retain the shipped integration scripts
when shell initialization sources them directly. Describe that migration in
targeted activation news and the upcoming release notes.
2026-10-19 21:56:49 -05:00
Drew Davis
6dfd606ede claude-code: respect preferXdgDirectories 2026-10-19 21:12:05 -05:00
Austin Horstman
640725978b docs: note deprecations removed for 26.11
List the option aliases, value conversions, and other compatibility code
removed across modules before the 26.11 cutoff, with the replacement for
each, so users upgrading from 26.05 know what to change. The removals
themselves are separate per-module changes.
2026-10-15 16:13:17 -05:00
Austin Horstman
35fec07f1a git: remove deprecated configuration aliases
Remove the `programs.git.signing.gpgPath` alias, deprecated since 25.05,
and the `extraConfig`, `userName`, `userEmail`, and `aliases` aliases
deprecated in 25.11. Users have had at least one full release to move to
`programs.git.signing.signer` and `programs.git.settings`
(`settings.user.name`, `settings.user.email`, `settings.alias`).

Update the manual examples that still used the old user options.

Setting a removed option now fails with an error that explains what
to do instead.
2026-10-15 12:32:55 -05:00
Austin Horstman
5954e60b2c home-manager: remove deprecated configuration path fallbacks
Since 23.05, configurations in `$XDG_CONFIG_HOME/nixpkgs` or
`~/.nixpkgs` have been found with a warning asking users to move them to
`$XDG_CONFIG_HOME/home-manager`. Since 23.11, Home Manager source paths
under those directories have only produced a warning. Remove both ahead
of the 26.11 release; configuration and source paths passed explicitly
still work.

Update the manual, the `programs.home-manager.path` description, the
shell completion default, and the help text, which still named the old
locations.
2026-10-15 12:32:03 -05:00
Malix - Alix Brunet
5a9d300bd6 docs: link Nixpkgs option declarations to source (#8942)
Rewrite Nixpkgs option declaration paths as readable source links instead
of exposing raw store paths in the generated documentation. This removes
the declaration references behind the options.json warning reported with
Determinate Nix.

Closes #7935.
Supersedes #9912.

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2026-10-14 12:46:50 -05:00
Austin Horstman
fae6e9e42c treewide: standardize mutable configuration option names
Use mutableSettings for Mise and Vicinae, and mutableSnippets for Pet.
These controls follow the same naming pattern as existing mutable options,
regardless of whether configuration uses merging or a read-only layer.

Keep Mise's existing name as a deprecated alias. Rename the freshly
introduced Pet and Vicinae options directly before the next stable
release, and update their tests and user-facing documentation. Defaults
and configuration behavior remain unchanged.
2026-10-06 12:16:19 -05:00
Austin Horstman
aa23f720d0 vicinae: drop support for legacy configuration formats
Nixpkgs 26.05 already ships Vicinae with the modern configuration formats, so retaining compatibility with the previous release no longer needs the pre-0.17 paths.

Require Vicinae 0.17.0 or later, remove legacy JSON themes and layer-shell environment handling, and direct useLayerShell users to the native setting. Keep the separate 0.20.6 requirement for mutable configuration.
2026-10-05 14:11:20 -05:00
Austin Horstman
d2f65d77f7 github-copilot-cli: clarify mutable transitions and cover ownership
Check effective file overrides, trust-state parsing, and custom paths without changing the opt-in default. Describe byte-identical relinking accurately during the filename migration.
2026-10-04 09:16:29 -05:00
Austin Horstman
2547d39701 github-copilot-cli: add trustedFolders option
Copilot CLI ignores trusted folders in settings.json and keeps them in
config.json, its own state file that also holds login and plugin
state. The module therefore left them out of settings.json, which left
no declarative way to trust folders.

Add a trustedFolders option that merges the declared folders into
config.json's trustedFolders list at activation. Only that key is
changed: folders trusted from inside Copilot CLI are kept, and removing
a folder from Nix does not untrust it. config.json is read as JSON5
because Copilot CLI starts it with a comment header, and a new file is
created with mode 600 as Copilot CLI does. The warning for the old
settings keys now points to the new option.
2026-10-04 09:16:29 -05:00
Austin Horstman
fafaa4d767 github-copilot-cli: add mutableSettings option
Copilot CLI replaces settings.json when it saves a setting, for example
after changing the model or theme from inside the CLI. With a linked
file that replaces the link, and the next activation reports a
collision.

Add an opt-in mutableSettings option that merges the declared settings
into a writable settings.json after linkGeneration with
mkImpureConfigMerger instead of linking it. Existing files are read as
JSON5, since Copilot CLI accepts comments there. Declared values take
precedence, keys later removed from the settings stay in the file, and
comments and formatting are not preserved. The default still links the
file.

Turning the option off links the file again. mkImpureConfigCleanup
removes a merged copy Copilot CLI has not changed so the link can
replace it; a changed one is reported as a collision.

Mention the option in the news entry and release note as the way to
keep a settings.json Copilot CLI already wrote.
2026-10-04 09:16:29 -05:00
Austin Horstman
5d3e8eea68 github-copilot-cli: write settings to settings.json
Since Copilot CLI 1.0.35, user settings live in settings.json and
config.json holds internal state. On startup, 1.0.88 moves user keys
out of a Home Manager config.json into settings.json and rewrites
config.json as a regular file, replacing the link, so the next switch
collides on config.json.

Link the declared settings as settings.json instead and stop managing
config.json, including the firstLaunchAt workaround that only existed
for it. A read-only settings.json link survives startup; Copilot CLI
replaces it only when it saves a setting.

Copilot CLI drops trusted_folders from settings.json and moves
trustedFolders into its own state in config.json, rewriting
settings.json and so replacing a linked file. Leave both keys out of
the file, warn when either is set, and do not manage the file when
they are the only settings. Document the canonical allowedUrls and
deniedUrls names.

The old config.json link is removed by linkGeneration when it still
points into a generation; a regular file left by Copilot CLI stays for
it to manage. The news entry and release note tell users whose Copilot
CLI already wrote a regular settings.json to remove it before
switching, since the new link would collide with it.
2026-10-04 09:16:29 -05:00
Dom Rodriguez
9e831c745b docs: document standalone home.backup* options
Assisted-by: Claude <noreply@anthropic.com>
2026-09-30 20:54:52 -05:00
Austin Horstman
bf3f7a120d astroid: migrate to native JSON settings
Add programs.astroid.settings for native JSON configuration and
generate the configuration file from it.

The extraConfig and externalEditor options become deprecated aliases
into settings. Home Manager no longer writes its bundled template;
Astroid's built-in defaults match it except editor.markdown_processor.
Astroid accounts still supply account settings, the notmuch path, and
the GPG path as per-key defaults. Empty settings write no file.

externalEditor now merges at ordinary priority instead of replacing
the editor keys, and priorities on extraConfig sections apply to the
section as a unit. The release notes describe both changes.
2026-09-30 08:40:10 -05:00
Austin Horstman
d4941d9c8d notmuch: migrate to native INI settings
Add programs.notmuch.settings for native INI configuration with list
values, and generate the configuration file from it.

The new.ignore, new.tags, maildir.synchronizeFlags, search.excludeTags,
and extraConfig options become deprecated aliases into settings.
Settings carry no static defaults: new.tags, new.ignore, and
maildir.synchronize_flags fall back to notmuch's identical defaults.
State versions before 26.11 keep search.exclude_tags = deleted;spam and
write database.path even without email accounts. Enabled email
accounts supply database.path, and notmuch-enabled accounts the user
identity. Null values and empty sections are omitted so a derived
value can be removed.

extraConfig no longer overwrites modeled values unconditionally: forced
definitions win and ordinary collisions fail. The release notes
describe the migration.

Mbsync, lieer, and mujmap now write settings.new.ignore directly, so
they do not trigger deprecation warnings.
2026-09-30 08:23:14 -05:00
Austin Horstman
7d46509d83 borgmatic: migrate backups to native settings
Add programs.borgmatic.backups.<name>.settings for native borgmatic
YAML and generate each backup file from it.

The location, storage, retention, and consistency options and the
section extraConfig options become deprecated aliases into settings.
Warnings name the affected backup. Legacy configurations without
overlapping keys produce the same YAML, and Home Manager symlink
exclusions still append to exclude_from.

Drop the assertions that rejected backups setting both or neither of
sourceDirectories and patterns, so native source patterns and
database-only backups work.
2026-09-30 07:59:27 -05:00
Austin Horstman
e9796a288e lib/deprecations: name exact settings destinations
Forward converted values to the complete settings path so the standard
changed-option warning identifies the destination key. Preserve legacy
reads, priorities, defaults, and shadowed conversions.

Point mpdris2 at Library.music_dir directly and cover nested paths,
literal dotted keys, and the affected callers in warning tests. The
contributor guidelines now describe `to` as the settings path that
contains `key` instead of the settings root.
2026-09-23 22:37:57 -05:00
Austin Horstman
afa6821c70 grobi: migrate to freeform settings
Generate grobi.conf from unrestricted JSON settings so root fields such as on_failure and nested rule values are configurable.

Migrate rules and executeAfter through the ordered settings rename helper, retaining historical empty defaults, alias reads, priorities, and list ordering.
2026-09-16 23:20:56 -05:00
Austin Horstman
efa3ccb4c3 openstackclient: expose whole-file settings
The old cloud-only mappings cannot express root-level cache and client
settings. Expose complete YAML documents while preserving existing
configurations through standard rename aliases.
2026-09-15 09:27:35 -05:00
Austin Horstman
cfcda3f993 lib.deprecations: simplify settings migrations (#9953) 2026-09-13 21:18:31 -05:00
Austin Horstman
bdcb842903 lib/deprecations: preserve settings overlay definitions
Share raw overlay forwarding and effective-key detection for default-empty
legacy options. Keep application defaults and conversions in consumers.

Delegate aliases and diagnostics to doRename without rewrapping prepared
priorities. Cover ordering, composition, empty values, and source filenames
in the existing evaluations.
2026-09-12 23:16:50 -05:00
Austin Horstman
fe48612c53 twmn: migrate to freeform INI settings
Use native INI settings instead of a copied option schema, retaining
legacy conversions, default behavior, and font-package installation.
Preserve extraConfig's final override while users migrate to settings.
2026-09-12 12:44:47 -05:00
Ihar Hrachyshka
17bf375751 firefox: adjust relnote and news for macOS 27
Don't nudge users to change their version. Instead, ask to set
configPath explicitly.
2026-09-12 11:22:12 -05:00
Austin Horstman
e4345d5ae8 xsuspender: migrate to freeform settings (#9927)
Replace the native option schema with generator-backed INI settings
and standard rename aliases to reduce module maintenance. Retain
historical defaults only for legacy options at option-default priority,
so ordinary settings assignments override them during migration.
Cover legacy reads, priorities, conditions, and settings-only behavior.
2026-09-11 13:16:59 -05:00
Ihar Hrachyshka
6960c16659 firefox: document darwin configPath migration 2026-09-10 22:57:58 -05:00
wangzhengji06
df6fe1a630 docs: use module path in NixOS installation example 2026-09-05 15:18:31 +02:00
repparw
9dc641cd52 voxtype: start after graphical-session.target
The daemon was wanted by default.target, so it raced the compositor for
the GPU render node at login. whisper.cpp registers its backends once
per process, so a daemon that started before the render node existed
logged "ggml_vulkan: No devices found" and stayed on CPU until manually
restarted mid-session.

Want the unit from graphical-session.target instead and order it After
it. Device units do not exist in the user manager, so the target is the
earliest reliable ordering point. The model-loader oneshot now sets
RemainAfterExit so it does not re-run and flap on every
graphical-session reactivation.

Assisted-by: opencode (ox-alpha)
2026-08-26 20:04:49 -05:00
Peter Bittner
e13ba5e5ab docs: link module pages without an invalid anchor
Drops the URL fragment from links that address a `programs.foo` or
`services.foo` page. Such a path names a module rather than an option,
so the page carries no matching anchor and the fragment pointed nowhere.
Option paths keep their fragment, including the single-segment options
`lib`, `specialisation` and `uninstall`, whose name equals their page
path.

Moves the anchor handling that convert-markup.py and render-options.py
had in common into a new option_links module imported by both. The
derivations therefore pass the mdbook directory instead of a single
script file, so the import resolves.
2026-08-12 07:40:00 -05:00
Peter Bittner
a0d058ef22 docs: link release note highlights to module pages
Changes the option anchors in the 26.05 and 26.11 highlights that
describe a whole module, so they point at the module's options page
instead of its `enable` option. Both entries previously rendered as
"The programs.uv.enable module ..." and "The programs.rclone.enable
module ...", naming an option where a module was meant. The rewriter in
docs/mdbook/convert-markup.py maps programs.<name> to that module's
page and derives the link label from the anchor, so the empty link text
is kept.
2026-08-12 07:40:00 -05:00
Damien Cassou
47a4275796 docs: fix link to allowed-users documentation 2026-07-31 16:01:16 -05:00
MithicSpirit
3d25fa94cf lib: option to escape tabs in lib.hm.generators.toKDL
Disabled by default for backwards compatibility.

Enabled for zellij and niri as per escapeBackslashes.
2026-07-28 15:16:56 -05:00
Austin Horstman
165228b0ef launchd: restore gui domain defaults
User-domain agents are not rediscovered from the user LaunchAgents directory after reboot. Let built-in agents inherit the GUI default while keeping explicit user-domain configuration available.
2026-07-15 10:29:26 -05:00
Vyacheslav Matyukhin
6dc9e081ba docs: fix cross-page links broken by mdbook migration
The mdBook migration split the manual into one HTML page per section,
but same-page fragment links (e.g. [Standalone setup](#sec-flakes-standalone))
were left pointing at anchors that now live on other pages, so they
silently do nothing when clicked.

Rewrite all cross-page fragment links in docs/manual and
docs/release-notes to page-qualified relative links. Option anchor
links (#opt-*, #nixos-opt-*, #nix-darwin-opt-*) are untouched since
convert-markup.py rewrites those at build time.

Also give the previously empty-label [](#sec-tests) link in the 25.05
release notes a "Tests" label, since the mdBook renderer does not
auto-fill labels from the target heading.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-15 08:56:06 -05:00
_
d32537981c lib: escape backslash in lib.hm.generators.toKDL 2026-06-30 23:49:47 -05:00
Austin Horstman
dc89b0c0bb launchd: add agent domain option
Allow Darwin LaunchAgents to target either the GUI or user launchd domain while preserving gui as the compatibility default.
2026-06-24 20:38:38 -05:00
Austin Horstman
66eb0fc116 docs: clarify new module news conditions
Clarify that new-module news should remain visible to users who have not enabled the new module yet.
2026-06-22 12:35:03 -05:00
Austin Horstman
f3dc0b8583 docs: update platform module guidance
Program and service modules are auto-imported now, so contributor docs should point platform-specific work at guarded module behavior and tests instead of loadModule.
2026-06-21 22:58:48 -05:00
Austin Horstman
db97e414d5 docs: describe embedded module integration
Document the extra module arguments, shared modules hook, and NixOS activation modes so embedded Home Manager setup matches the current integration code.
2026-06-21 22:51:39 -05:00
Austin Horstman
e731ff60ec docs: correct test command guidance
Document list and run commands separately, keep test runner usage through the flake wrapper, and avoid stale legacy full-suite commands.
2026-06-21 22:43:01 -05:00