1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-24 09:06:17 +00:00
Commit graph

1169 commits

Author SHA1 Message Date
Austin Horstman
c657142e24
thunderbird: add message filters option (#6652)
* thunderbird: add message filters option

Add option to declare account-specific message filters.

* tests/thunderbird: add second filter for sort

Make sure they are generated in correct order.

* thunderbird: use profilePath for messageFilters

In testing on darwin and NixOS, they use this path. 

---------

Co-authored-by: 347Online | Katie Janzen <katiejanzen@347online.me>
2025-03-17 16:14:41 -05:00
Jennings Zhang
f55c5f6569 kubecolor: create oc alias conditionally 2025-03-17 14:53:32 -05:00
Austin Horstman
5a6e5a59a4
tests: stub more expected packages darwin (#6649)
Get ahead of random breakages blocking ci.
2025-03-17 14:14:02 -05:00
Austin Horstman
6914c15c09 tests/default: scrub zsh
test expects scrubbed version
2025-03-13 20:08:53 -05:00
Austin Horstman
8f8f5432d1 tests/zsh: fix zshrc content priority test
Previous test didn't verify they were actually in correct order,
updating test to check configuration is generated, as expected.
2025-03-13 20:08:53 -05:00
Austin Horstman
0b0baed7b2 tests/default: blacklist sapling
broken atm
2025-03-13 14:34:14 -05:00
Stanislav Alekseev
6576167e6b
macos-remap-keys: add (#6605)
A module to remap keys using macos native tool (hidutil)
2025-03-13 09:02:04 -05:00
Qiming Chu
7832b5aa95
zsh: refactor zsh configuration for better order control over .zshrc (#6479)
* zsh: add initContent option for custom .zshrc content insertion

- Users can add content anywhere by using `lib.mkOrder`, `lib.mkBefore`
and `lib.mkAfter` custom configurations.
- Add test cases to verify the insertion of content before and after
existing configurations in `.zshrc`.
consolidate zshrc content tests into a single priorities test
2025-03-13 14:37:11 +01:00
Austin Horstman
1878091234 home-cursor: louder deprecation
Check if a user explicitly set option to null and warn that they should
just disable instead.
2025-03-12 09:51:58 -05:00
isabel
74f2ed6a64 test/home-cursor: add new .enable check 2025-03-12 09:51:58 -05:00
Marijan Petričević
5871e21c11
screen-locker: add lockCmdEnv option (#6592) 2025-03-12 07:31:54 -05:00
Ilya Savitsky
744f749dd6
mods: add a mods module (#6339) 2025-03-09 23:05:08 -05:00
bamhm182
ce9cb2496c
podman: added volume, image, and build quadlets (#6137)
Added support for build, image, and volume quadlets
Resolved test failures due to podman 5.3.0 upgrade
Replaced several instances of pkgs.podman with services.podman.package
2025-03-09 23:02:05 -05:00
Thiago Kenji Okada
db4386d686
home-environment: add line-break after sessionSearchVariables (#6596)
PR #6593 broke activation when `sessionVariablesExtra` is used, e.g.:
`services.ssh-agent` because it concatenate the strings without a line
break, so the resulting `hm-session-vars.sh` file became:

```bash
export XCURSOR_PATH="/etc/profiles/per-user/thiagoko/share/icons${XCURSOR_PATH:+:}$XCURSOR_PATH"if [ -z "$SSH_AUTH_SOCK" ]; then
  export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent
fi
```

This commit fixes it by enforcing a line break between
`sessionSearchVariables` and `sessionVariablesExtra`.
2025-03-09 12:57:44 -05:00
Thiago Kenji Okada
277eea1cc7 home-environment: add home.sessionSearchVariables
This commit introduces `home.sessionSearchVariables` option, that is
created to be a "generic" version of `home.sessionPath` for any
environment variables that is similar to PATH (e.g.: MANPATH). This
allows composition of those variables between multiple modules, avoiding
issues like this one:

https://github.com/nix-community/home-manager/pull/4579/files#r1364374048

This commit also reimplements `home.sessionPath` as terms of
`home.sessionSearchVariables`, to reduce code duplication and show that
the code is correct.

The behavior is to prepend the new search paths. This will allow
the user to override the defaults easily by setting it later in the
configuration.
2025-03-09 09:36:41 -05:00
Austin Horstman
1fd39a1055 tests/vscode: fix darwin snippets test 2025-03-09 00:44:11 -06:00
Austin Horstman
8d2a058108 tests/thunderbird: fix darwin test 2025-03-09 00:44:11 -06:00
Austin Horstman
4f2c461286 tests/yubikey-agent-darwin: fix test 2025-03-09 00:44:11 -06:00
Austin Horstman
4c9643363a tests/ollama: fix darwin test 2025-03-09 00:44:11 -06:00
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
Austin Horstman
b3e11ed4a9 tests: central darwin stubbing
Until we can figure out how to resolve issue with stdenv.
Makes it easier to revert when automatic stubbing is fixed for darwin
stdenv
2025-03-09 00:44:11 -06:00
Austin Horstman
b74402e4e8 tests: expose scrubDerivation
Will use it with darwin scrubbing
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
1347b0b468 tests: move vinegar to linux only 2025-03-08 00:03:41 -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