1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
Commit graph

1725 commits

Author SHA1 Message Date
Benedikt Rips
9a132f2971 less: generate lesskey only when non-empty 2025-08-11 10:01:10 -05:00
Leon Schwarzäugl
18ea6d7a8f pizauth: init module 2025-08-11 10:00:35 -05:00
Lin Xianyi
627a3932b9 swww: add extraArgs for swww-daemon 2025-08-11 09:04:24 -05:00
Aguirre Matteo
0d492b89d1
walker: add module (#7649) 2025-08-10 23:23:58 -05:00
lignus
3ec1cd9a07
launchd+targets/darwin: Escape XML in plists (#7356)
This patch updates all usage of toPlist such that it escapes any strings
in the final output.

The motication for this change is to avoid confusion when end-users of
home-manager's APIs are not aware that the option values they set end up
being passed un-escaped to XML files.

BREAKING CHANGE: Consumers doing manual escaping will now be doubly escaped.

Co-authored-by: Linnnus <linnnus@users.noreply.github.com>
2025-08-09 11:22:08 -05:00
Kyure_A
5f8bb123b9 sheldon: init module
sheldon: add module

sheldon: some fixes

Revert "sheldon: some fixes"

This reverts commit ea859bc3e3.

sheldon: fix missed variable name

sheldon: add description and example (blank)

sheldon: add shell configs

sheldon: format code

sheldon: add test case

maintainers: add Kyure-A as maintainer

sheldon: add completions option and various fixes

sheldon: fix missed file name

sheldon: fix setting to simple

sheldon: add option to enable completion script

sheldon: change  default value of options to enable completions to true

sheldon: fix how commands are combined

sheldon: fix missing prefix

sheldon: change mkIf to be enclosed in parentheses

sheldon: fix expression type

sheldon: add mainrs as maintainer
2025-08-07 19:39:04 -05:00
Adam Dinwoodie
dbfcd3292d accounts.email: add option to disable an account
Allow a user to disable an email account by setting
`accounts.email.accounts.<name>.enable = false`.  This is useful if
someone wants to configure email accounts globally but only use them in
certain circumstances.

Everywhere email account configuration is used, check if the account is
enabled before checking any attributes of the account.
2025-08-07 14:08:46 -05:00
Austin Horstman
07b994baed tests: include integration tests in buildbot
Include working integration tests in buildbot outpu.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-08-07 14:08:22 -05:00
Austin Horstman
2b87f9a53a tests: refactor outputs
Reduce redundant imports and group at higher level available for use in
more outputs.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-08-07 14:08:22 -05:00
Thierry Delafontaine
faa5b42eca codex: support XDG Base Directory specification
- Configuration file is now placed in XDG_CONFIG_HOME/codex/config.toml by default for versions >=0.2.0 when preferXdgDirectories is enabled.
- Falls back to ~/.codex/config.yaml for versions <0.2.0 and to ~/.codex/config.toml when preferXdgDirectories is disabled
- Sets CODEX_HOME environment variable to $XDG_CONFIG_HOME/codex when using XDG directories.
- Updated tests to verify XDG directory behavior and environment variable presence.
2025-08-07 14:04:33 -05:00
Austin Horstman
d8a475e179 tests: add mullvad-vpn to darwin scrublist
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-08-07 09:13:13 -05:00
awwpotato
c7acf2b1bf mullvad-vpn: add module 2025-08-07 08:39:36 -05:00
Benedikt Rips
62fdc8d410 keepassxc: add autostart option 2025-08-06 19:08:16 -05:00
Benedikt Rips
2a29968912 git-credential-keepassxc: init module 2025-08-06 12:39:55 -05:00
Austin Horstman
bf2dc7ebd8 tests: add tests package to search / run tests
One of the most annoying things is finding the test you want to run and
executing it, manually. Created a python script to leverage fuzzy
finding our available test outputs to execute with the CI commands.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-08-06 12:33:37 -05:00
Benedikt Rips
88913c98fe goto: init module 2025-08-06 10:57:16 -05:00
awwpotato
ad5d2b4aa7 rescrobbled: add module 2025-08-06 00:15:47 -05:00
Austin Horstman
ac351d435a tests/news: add new test for news entries
We need to catch the news entry issues sooner. Right now we don't have
any testing around them.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-08-06 00:11:26 -05:00
Austin Horstman
a379077675 sherlock: init module
Creating a sherlock module for the sherlock launcher. Prefer a file be
controlled by a single option and using settings for the main config
file.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-08-05 20:33:37 -05:00
Cool-Game-Dev
b7ee8deefc programs/nix-search-tv: init
Create the programs/nix-search-tv module, with options to enable,
change settings, and television integration.

Co-authored-by: awwpotato <awwpotato@voidq.com>
2025-08-05 14:10:01 -05:00
Benedikt Rips
74b4edc2d2 fontconfig: add options for font rendering 2025-08-05 14:05:43 -05:00
Benedikt M. Rips
36ad7d25fb
zsh: option to define autoloadable site-functions (#7611)
Add an option to the Zsh module that allows defining autoloadable site functions.
2025-08-05 14:03:10 -05:00
PopeRigby
98aed449ba television: update channel location
Co-authored-by: awwpotato <awwpotato@voidq.com>
2025-08-02 17:46:16 -05:00
robin
899af4218c
tmux: fix prefix and shortcut settings (#7549)
adjusting the tmux lines for setting the prefix.
previously the prefix option would be set in the prefix key table, causing it to not register correctly.

- updated tests
2025-08-01 09:53:46 -05:00
Foxocube
4e97102bd4
nh: add options for specific flakes (#7566)
* nh: Add options for specific flakes
* nh: Add tests for specific flake options

---------

Co-authored-by: Foxocube <git@foxocube.xyz>
2025-07-31 12:41:29 -05:00
Robert Helgesson
bd82507edd home-manager: re-enable gcroot handling for NixOS module
It was a bit too ambitious to also remove production of the gcroot, we
need it to keep track of the currently active Home Manager
configuration.

Fixes #7583
2025-07-31 08:25:36 +02:00
Austin Horstman
0630790b31 tests: include test names in passthru
Allow easily seeing what tests are involved in a chunk so you can
identify tests -> chunks easily.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-30 10:13:54 -05:00
Austin Horstman
53524d8b27 tests: chunk size 250 -> 50
Just seeing how this affects CI rebuilds / speeds.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-30 10:13:54 -05:00
Austin Horstman
ab14805267 darwinScrublist: add superfile
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-29 17:50:16 -05:00
Martin Popovski
4bf124678b
hyprland: Add "output" to importantPrefixes option default (#7507)
Adds support for `monitorv2` syntax
2025-07-29 16:41:27 -05:00
Austin Horstman
1a8b119e60 tests/caffeine: add test coverage
- Add basic-service.nix test for caffeine service configuration
- Test systemd service generation with proper graphical-session.target
integration

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-29 14:47:02 -05:00
Austin Horstman
cec4c1be7e tests/ssh-agent: add test coverage
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-29 14:46:54 -05:00
Austin Horstman
85a5287116 tests/gnome-keyring: add test coverage
- Add basic-service.nix test for default gnome-keyring configuration
- Add custom-components.nix test for pkcs11, secrets, and ssh components

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-29 14:46:36 -05:00
kerfuzzle
fa184c5460 hyprsunset: Add tests for transitons option
Adds tests to ensure that the services are still created correctly and the correct deprecation warnings are shown

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-29 13:11:56 -05:00
kerfuzzle
7c01358ff6 hyprsunset: Add tests for hyprsunset.conf file
Adds tests to verify that the configuration files and services were created sucessfully, even in a no configuration case

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-29 13:11:56 -05:00
Austin Horstman
0f9fae161d tests/arrpc: add service module test coverage
- Add custom-target.nix test for custom systemd target configuration

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-29 10:31:11 -05:00
Austin Horstman
a1b7e7f510 tests/antidote: remove deprecated relative path usage
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-28 14:47:42 -05:00
Austin Horstman
e52c6c3da3 zsh: env var assertion for dotdir
Needs to be known at build time. Ensure user doesn't accidentally use
env var in `dotDir`

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-28 14:47:42 -05:00
Austin Horstman
40af7ba06b zsh: relative path deprecation warning
Warn users when they configure a relative path. We want to encourage
using absolute paths and env variables.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-28 14:47:42 -05:00
Austin Horstman
9ff467fbe7 tests/zsh: add more path test cases
Test the new lib file path function

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-28 14:47:42 -05:00
Austin Horstman
800f16a9c5 tests: forward only test chunks to buildbot
We currently only need the tests covered by test-chunks in CI. We will
migrate more tests into the buildbot CI, as we are able to flesh them
out more.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-27 23:02:18 -05:00
Austin Horstman
7a02711a61 tests: integration tests only run on linux
Using dependencies that require linux.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-27 23:02:18 -05:00
Austin Horstman
234f10ec6d tests/flake: add buildbot output
Filters tests to specific platforms for buildbot.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-27 23:02:18 -05:00
Austin Horstman
e45ff5651c ci: split tests into chunks
We have lots of tests and would like to add more. However, adding more
testing coverage comes at the cost of a slower CI when we run them
sequentially. This adds test outputs that are chunked however we'd like
to tune for batch sizes. Allowing us to create a parallelized CI
workflow.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-27 23:02:18 -05:00
Austin Horstman
72cc1e3134 tests/hyprlock: update tests with upstream changes
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-27 07:03:54 -05:00
Friedrich Altheide
26e33ea5c0 docker-cli: Improve docs, fix enviornment variable 2025-07-25 14:03:11 -05:00
Kristopher James Kent (kjkent)
9fca491587 zsh: improve histfile handling
Previously, a stateVersion check for 20.03 determined whether or not the input to
`programs.zsh.history.path` would be prepended with `$HOME`. However, this was not
communicated in the documentation, which stated the version check determined whether
the default histfile location would be in `programs.zsh.dotDir` or
`home.homeDirectory`.

The current change simplifies matters and brings path handling in-line with that of
the preceding work on dotDir path handling. If a relative path is provided, it is
parsed as being relative to `home.homeDirectory`. Both absolute and relative paths
are supported, and are cleaned before being passed to other functions.

Tests have been rewritten for the new logic, with case handling for reusability.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-25 13:15:29 -05:00
Kristopher James Kent (kjkent)
21399deff2 zsh: improve dotDir handling
Previously, `config.programs.zsh.dotDir` prepended strings with `$HOME`.
This caused issues like nix-community#5100, where `$HOME` is
inconsistently resolved in time for the evaluation of the option. The handling
of this variable is also inconsistent with how paths are handled elsewhere,
including within the same module, where `config.programs.zsh.history.path`
does not mutate the supplied string.

To preserve backwards compatibility, this change prepends
`config.home.homeDirectory` to relative paths, while assigning absolute paths
unchanged. Tests for both cases are added.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-25 13:15:29 -05:00
Thierry Delafontaine
64796151f7 opencode: add JSON schema reference to config.json output
- Automatically include "$schema": "https://opencode.ai/config.json" in the generated
  opencode config.json file
- Update documentation to mention the added schema property
- Add corresponding "$schema" entry in test config.json file for validation purposes

Closes #7506
2025-07-24 11:05:45 -05:00
Thierry Delafontaine
1df662dde0 opencode: add empty-settings test
- Add `empty-settings` test to ensure the config file is not generated
  when no settings are provided
2025-07-24 11:05:45 -05:00