1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-18 14:28:15 +00:00
Commit graph

1071 commits

Author SHA1 Message Date
Austin Horstman
68540fb775 tests/syncthing: syncthing wrapper stubbing for darwin 2025-03-09 00:44:11 -06:00
Austin Horstman
15498b94ec tests/syncthing: fix extra-options on darwin
Need to stub the return from the writeBash used to populate the plist
file for darwin. Also the arguments were moved inside the wrapper.
2025-03-09 00:44:11 -06:00
Austin Horstman
1909541fc7 tests/targets-darwin: fix user-defaults test
Update to represent the new output generated by the module.
2025-03-09 00:44:11 -06:00
Mahmoud Ayman
b2314312f2
zsh: correct syntax option to syntax-highlighting (#5792)
The current syntax of highlighting style is outdated and not working as well. So this pr aims to update it so follow `zsh-syntax-highlight`` new syntax [example](e0165eaa73/highlighters/main/main-highlighter.zsh (L32)).
2025-03-08 19:37:10 +01:00
Austin Horstman
26f6b86264 tests/gh-dash: enable gh to test extension adding 2025-03-08 00:54:10 -06:00
Austin Horstman
3ade654257 tests/neovide: fix deprecation 2025-03-08 00:03:41 -06:00
Sefa Eyeoglu
6c2b79403e
treewide: use graphical-session.target for GUI services (#5785)
As per systemd.special(7)[0] graphical-session-pre.target is strictly
for units that set up things for a graphical session. Most notably,
these are usually started *before* the compositor/session is actually
ready.

While Home Manager's current implementation of graphical-session.target
allows these units to work regardless of what systemd.special(7)
specifies, other setups like ones with uwsm[1] do not allow these units
to start properly.

[0]: https://www.freedesktop.org/software/systemd/man/latest/systemd.special.html#graphical-session-pre.target
[1]: https://github.com/Vladimir-csp/uwsm
2025-03-07 18:09:12 -06:00
Austin Horstman
95711f9266
treewide: remove with lib (#6512)
* nixos: remove with lib
* nix-darwin: remove with lib
* home-manager: remove with lib
* modules/accounts: remove with lib
* modules/config: remove with lib
* modules/i18n: remove with lib
* modules/misc: remove with lib
* modules: remove with lib
* modules/targets: remove with lib
* tests/modules/firefox: remove with lib
* tests/modules/services: remove with lib
2025-03-07 14:16:46 -06:00
Raine Godmaire
83f4629364
granted: support fish shell (#6549)
Due to fish being a non-POSIX shell, granted provides a separate wrapper
to be used by fish.
2025-03-07 13:29:16 -06:00
Vonfry
6f71acf71b
git: apply sendmailCmd instead of smtpServer (#6399)
In manpage of git-send-email --smtp-server,

    For backward compatibility, this option can also specify
    full pathname of a sendmail-like program instead; the program
    must support the -i option. This method does not support
    passing arguments or using plain command names. For those use
    cases, consider using --sendmail-cmd instead.
2025-03-04 22:46:31 +01:00
Austin Horstman
47c694963e tests: move xdg to cross platform tests
Has cross platform functionality, gate linux only behind separate test
path.
2025-03-01 11:08:42 -05:00
Austin Horstman
17fd27a8ea tests: use mkDefault with enable
We shouldn't need to mkForce every tests attempt to configure this
value.
2025-03-01 11:08:42 -05:00
gmvar
343646e092
kitty: add action aliases config (#6538) 2025-02-27 12:12:56 -06:00
Austin Horstman
cf3bf4f1b7
mpd: refactor implementation (#6537)
Remove with lib, reorganize, cleanup conditionals, hide options that are
linux only from darwin.
2025-02-27 10:56:56 -06:00
Damien Cassou
b8869e4ead
mpd: Add support for darwin (#6517) 2025-02-26 20:53:00 -06:00
Even Brenden
6be185eb76
screen-locker: set Restart=always for all services (#6534) 2025-02-26 15:41:55 -06:00
eulalia
18e74c2e02
aerc-accounts: improve logic for parsing XOAUTH2 URL params (#6530)
This commit fixes an issue in aerc-accounts that prevents oauth2
accounts from being generated from given parameters. It also allows
users to add XOAUTH2 credentials without having to add all four of
client_id, client_secret, token_endpoint, and scope. It further adds
tests for the XOAUTH2 config generation.
2025-02-26 07:59:40 -06:00
Austin Horstman
12e26a74e5
tests/neovim: resolve deprecation (#6522)
Assigning a plain list to extraLuaPackages is deprecated.
                           Please assign a function taking a package set
as argument, so
                             extraLuaPackages = [ pkgs.lua51Packages.xxx
];
                           should become
                             extraLuaPackages = ps: [ ps.xxx ];
2025-02-23 15:53:17 -06:00
Austin Horstman
6a2af4ffb2 tests/swayidle: bash -> bash-interactive 2025-02-23 13:07:25 -08:00
Austin Horstman
3002f1aedf tests/mpd: bash -> bash-interactive 2025-02-23 13:07:25 -08:00
Ihar Hrachyshka
6b7cd50812 tests: test librewolf the same way firefox is tested
Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-02-22 17:38:43 -08:00
Ihar Hrachyshka
7f9ba30a28 tests: check that all firefox derivatives can be installed
The issue itself was resolved with:
https://github.com/nix-community/home-manager/pull/6460

This patch only adds a test case to make sure we don't ever regress by
installing firefox and librewolf and floorp at the same time.

Closes: #6467

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-02-22 17:38:43 -08:00
Austin Horstman
546949fea1 tests/dircolors: test zsh path 2025-02-22 11:50:20 -08:00
Austin Horstman
89b8934055 tests/dircolors: add xdg config test 2025-02-22 11:50:20 -08:00
Artem Starikov
90504b9a89
thunderbird: allow managing feed accounts (#5613) 2025-02-22 12:33:41 -06:00
eulalia
7ceacd98a9
wpaperd: add systemd service; move to services/ from programs/ (#6302)
This commit adds a systemd service to run it, and accordingly moves it to services.wpaperd.

In addition, the existing tests have been migrated to services, and an entry in the newslist has been created alerting users to this change.
2025-02-22 11:32:15 -06:00
Reputable2772
e860bd49ea
vscode: add profiles support (#5640)
Adds support for VSCode Profiles configuration. Allowing you to define custom extensions and settings per profile.
2025-02-22 10:58:27 -06:00
Feliche-Demian Netliukh
4949081d1e
jqp: add module (#5716) 2025-02-22 10:23:01 -06:00
DSOverlord
a51e94e51c
clipse: add module (#5777)
clipse is a configurable, TUI-based clipboard manager application written in Go with minimal dependency. Though the app is optimized for a Linux OS using a dedicated window manager, clipse can also be used on any Unix-based system.
2025-02-22 09:40:15 -06:00
Coutinho de Souza
dd21b9afd5 imapnotify: add extraArgs option to imapnotify-accounts
`wait` is no longer a part of the goimapnotify's config, but one of its
cli options.
2025-02-22 06:33:32 -08:00
Hoang Nguyen
2b382e499a
earthly: init module (#6265)
Earthly is a build configuration framework utilizing buildkit and
Dockerfile-like syntax for simplicity and fast builds.
2025-02-22 01:04:35 -06:00
Austin Horstman
439a125afe
tests: remove with lib (#6511) 2025-02-21 23:20:07 -06:00
Austin Horstman
e495cd8c80
tests/firefox: add profiles-extensions (#6510)
Wasn't actually running test because it wasn't included. Also had to fix
test after some of the recent changes.
2025-02-21 22:41:22 -06:00
Austin Horstman
62d038f499 nushell: reenable test 2025-02-21 16:24:40 -08:00
David Thievon
bdf73272a8
swayimg: add module (#6506) 2025-02-21 12:15:02 -06:00
Ihar Hrachyshka
1a78a4c7fe firefox: fix build failure when package is null
Native messaging hosts module assumed all hosts are packages, and we
were passing null before.

The patch also adds a test case for a null firefox package to avoid
regressions in the future for this common (on Darwin at least) scenario.

Note: Thunderbird doesn't need a similar change because it doesn't allow
a null package.

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-02-21 09:28:22 -08:00
Ihar Hrachyshka
fad54a641a tests: check thunderbird with and without native messaging hosts
Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-02-21 09:28:22 -08:00
Ihar Hrachyshka
63146593a9 tests: don't override scraping of nixpkgs for thunderbird suite
Instead, pick just the required packages to pass the tests.

Note: we have to refer to real derivations because symlinkJoin assumes
the passed derivation is a directory with files, otherwise it fails as:

@thunderbird@: No such file or directory

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-02-21 09:28:22 -08:00
Ihar Hrachyshka
e5e485e73c thunderbird: separate test case for firefox+thunderbird setup
Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-02-21 09:28:22 -08:00
Ihar Hrachyshka
7e81c581a5 thunderbird, firefox: fix file conflict for native messaging hosts
On Linux, both Thunderbird and Firefox use the same directory to contain
native messaging host modules. On this platform, we have to merge both
directories with native hosts into one.

The patch introduces a separate helper module to manage native host
directory generation. Now program modules (firefox, thunderbird) declare
native hosts to initialize; while the new helper module determines
*where* and *how* to merge them on disc.

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-02-21 09:28:22 -08:00
Ihar Hrachyshka
fadb9cba44 Reapply "thunderbird: add native host support (#6292)" (#6371)
This reverts commit 6fbbfb9240.

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-02-21 09:28:22 -08:00
Heitor Augusto
3c82285348
vinegar: add module (#6494) 2025-02-21 07:48:51 -06:00
Austin Horstman
1c189f0114
tests/home-cursor: init (#6496)
Working on module and needed test to verify expected behavior.
2025-02-19 13:18:30 -06:00
ljyoth
69dfc316c5
mise: enable nushell integration (#6363) 2025-02-17 19:36:02 -06:00
HPsaucii
27ffa35178 firefox: add support for configuring extensions
This commit refactors programs.firefox.profiles.<name>.extensions in
order to support both installation of extensions (addons) and their
configuration. It does this by setting the
`extensions.webextensions.ExtensionStorageIDB.enabled` user_pref to
false.

When this preference is set to false, support for storing extension
settings in sqlite databases, also known as IndexedDB or IDB, is
reverted back to the JSON format present in firefox versions prior to
version 63, as seen here:
https://blog.mozilla.org/addons/2018/08/03/new-backend-for-storage-local-api/

IndexedDB was made the default due to performance improvements, but had
the consequence of removing any possibility of declarative extension
configuration without the assistance of firefox's policy system. The
policy system is supported by a small amount of extensions, such as
uBlock Origin, but has to be explicitly supported. Even when supported,
it provides significantly less granular control when compared to the
JSON storage format.
2025-02-17 12:17:38 -08:00
Austin Horstman
5c5697b82a
git: support not configuring signing.format (#6478) 2025-02-17 03:00:03 -08:00
Calum MacRae
582d3cd42d
yubikey-agent: init service module (#6446) 2025-02-14 15:10:24 -06:00
Sizhe Zhao
7da01bc47a
git: support alternate signing methods (#5516)
The Git module now supports SSH and X.509 signing in addition to
OpenPGP/GnuPG, via setting the `programs.git.signing.format` option.
It defaults to `openpgp` for now as a backwards compatibility measure,
but I feel like we shouldn't enforce GPG as the default on everyone,
especially for people who use SSH signing like me.

Accordingly, `programs.git.signing.gpgPath` has been renamed to
`programs.git.signing.signer`, as now the signer binary is not
restricted to GnuPG. Users should only get a warning and everything
should continue to work.

Fixes #4221, supersedes #4235

Co-authored-by: Mario Rodas <marsam@users.noreply.github.com>
Co-authored-by: Sumner Evans <me@sumnerevans.com>
Co-authored-by: Leah Amelia Chen <hi@pluie.me>
2025-02-14 11:47:27 -07:00
derrik
a70d788923
aerospace: fix workspace assignment config (#6442)
with the default to `{}`, this table is always set in the generated
config. this change allows `null` for
`workspace-to-monitor-force-assignment` and sets the default to `null`

Co-authored-by: derrik.fleming <derrik.fleming@spindance.com>
2025-02-13 08:24:38 -06:00
Austin Horstman
d303453b13 eww: add null configDir test 2025-02-12 09:38:53 -08:00