1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-11 05:39:44 +01:00
Commit graph

841 commits

Author SHA1 Message Date
David Sánchez
ccf631b9e2
rio: use XDG config for both linux and darwin
`rio` now uses the same config location for both Linux and macOS:

> MacOS and Linux configuration file path is `~/.config/rio/config.toml`.

Ref: https://raphamorim.io/rio/docs/configuration-file
2024-04-10 21:27:36 +02:00
Clément DOUIN
8d54a2788d
himalaya: adjust code for v1.0.0-beta.3 2024-04-10 21:27:36 +02:00
bri
942146ac90
zsh: improve shell{,Global}Aliases
This commit changes the way aliases are rendered, adding the "no more
flags" flag `--`, which means that, for example, the alias `"-" = "cd
-";` will work as expected. (I was getting a syntax error before this
change.)

Additionally, now the alias key is shell escaped, which may help some
edge cases. I'm honestly not sure if this part is necessary since I
assume an alias can't contain spaces anyway, but it definitely
shouldn't break anything.
2024-04-10 21:27:35 +02:00
musjj
98d1d23212
gallery-dl: add package option 2024-04-10 21:27:35 +02:00
Robert Helgesson
9da77acf45
tests: include a service in integration tests 2024-04-10 21:27:32 +02:00
Robert Helgesson
943a9b3727
gpg: fix immutable keyfile test 2024-04-10 21:27:31 +02:00
Robert Helgesson
4342e07a09
bemenu: stub package in tests 2024-04-10 21:27:31 +02:00
Robert Helgesson
941726161c
fcitx5: fix reference to fcitx5-with-addons 2024-04-10 21:27:31 +02:00
Felipe Silva
6c7547cbcb
khal: fix contact integration (#4836)
* khal: fix contact integration

- Add tests for contact+khal
- Make options `color`/`priority` available for contact accounts

* khal: add separate calendar for each contact collection

A contact account may have multiple VCARD collections, but Khal doesn't
search recursively. Collection folder names must be hardcoded, and each
has its own calendar.

- Add khal.collections option for contact accounts
- Default to previous setup for accounts with a single collection
- Add tests

* khal: specify how priority is defined by Khal

See https://khal.readthedocs.io/en/latest/configure.html
2024-04-10 21:27:30 +02:00
Robert Helgesson
0e561e8755
fcitx5: fix tests 2024-04-10 21:27:30 +02:00
Robert Helgesson
85f3c41ef2
tests: add mkStubPackage in Nixpkgs overlay 2024-04-10 21:27:30 +02:00
John Axel Eriksson
cb76bfe06c
river: fix systemd activation (#5055)
The `exec` command does not do any shell parsing and does not
understand the `&&` which is how the extraCommands are added after
dbus activation. There doesn't seem to be a reason for `exec` here
anyway so just remove it and allow shell parsing.
2024-04-10 21:27:30 +02:00
XYenon
28e90a978e
yazi: update shell integrations (#5048) 2024-04-10 21:27:29 +02:00
Gaetan Lepage
b59d9800c3
river: add module 2024-04-10 21:27:28 +02:00
Nikita Pedorich
d4d413a2a8
tealdeer: module improvements
- Cache update on HM activation removed
- freeformType settings
- More tests added
- Platform-dependent tests
- Maintainer added
2024-04-10 21:27:27 +02:00
Robert Helgesson
dddefab1ef
tests: add basic integration tests
This introduces some rudimentary integration tests using the NixOS
test framework. The intent is to better catch regressions when doing
more elaborate changes that may affect overall Home Manager behavior.
Note, the tests are currently not run automatically.
2024-04-10 21:27:25 +02:00
Robert Helgesson
5553c93889
neomutt: fix tests
Caused by an unfortunate interaction between #4597 and #4999.
2024-04-10 21:27:25 +02:00
Robert Helgesson
3e10606b30
mpv: create doc output in tests 2024-04-10 21:27:24 +02:00
Christian Dannie Storgaard
f66e0c311b
neomutt: Initial IMAP support (#4597)
neomutt: Updated options and added tests

neomutt: Added test for individual mailbox type

neomutt: Formatted code

neomutt: Enable ssl_force_tls based on IMAP instead of SMTP

neomutt: Applied suggestions from @chayleaf

neomutt: fix breaking tests
2024-04-10 21:27:24 +02:00
Rafael Carvalho
5ff30300d7
imapnotify: enable STARTTLS if enabled in email account config (#5013)
* imapnotify: enable STARTTLS if enabled in email account config

Since version 2.3.10 goimapnotify supports starttls. In version 2.3.11 a
typo in the settings was fixed, using tlsOptions.starttls to enable it.

This commit enables starttls in the goimapnotify config file if it is
enabled in the email account's imap settings.

* imapnotify: test generated config file

Compare the generated service config file with a manually verified
sample.
2024-04-10 21:27:23 +02:00
Emily
3d10daecd3
sway: fix workspace 10 missing from default config (#4636)
workspace 10 is part of upstream's default config, but was missing in home-manager.

The initial "sway: add module" PR (02d6040003) went through multiple iterations and had workspace 10 included for a brief moment.
Until the author removed it in a force-push commenting

> Have removed the last change which added bound ${modifer}+0 to workspace number 10 as this messed up workspace numbering in sway.

The reason might have been, that sway used to sort the workspaces in the order they appeared in the config.

Attribute sets in nix are sorted, but not "naturally sorted", meaning `bindsym Mod1+0 workspace number 10` comes before `bindsym Mod1+0 workspace number 1`.

It's unclear if that's what really happened. A workaround would have been to use `lib.lists.naturalSort` in `keybindingsStr`.

But I cannot reproduce this anymore in any way.
I assume this has been fixed many years ago by now.

upstream config: 020a572ed6/config.in (L113-L134)
2024-04-10 21:27:23 +02:00
Alexis (Poliorcetics) Bourget
331dc328b2
zellij: use full executable path 2024-04-10 21:27:23 +02:00
arjan-s
aff1ba7dd8
neomutt: fix crypt_use_gpgme in newer versions
Fixes config load error since newer versions of neomutt don't allow
`crypt_use_gpgme` to be loaded dynamically (from folder hooks)
2024-04-10 21:27:22 +02:00
Anton
875fa16fe2
swayosd: update executable 2024-04-10 21:27:22 +02:00
Clément DOUIN
546ace0756
himalaya: adjust module for v1.0.0-beta 2024-04-10 21:27:22 +02:00
shivaraj-bh
6843538e68
nix-gc: add service
The nix-gc service runs automatically at a specified frequency. It is
managed via launchd on macOS and systemd on Linux.
2024-04-10 21:27:21 +02:00
musjj
2752c42035
kitty: always export KITTY_SHELL_INTEGRATION
This ensures that `KITTY_SHELL_INTEGRATION` is manually set to the
user's `shellIntegration.mode`. This is necessary because sometimes
the variable is not set in subshells or splits.
`shellIntegration.mode` is also now ensured to always contain `no-rc`.
2024-04-10 21:27:21 +02:00
Robert Helgesson
495b3c915a
tests: reduce closure sizes 2024-04-10 21:27:19 +02:00
Sefa Eyeoglu
bbe8322566
wob: add module
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-04-10 21:27:18 +02:00
Ryan Horiguchi
06ca1c3c6a
firefox: add default containers 2024-04-10 21:27:16 +02:00
Robert Helgesson
a04f37fab0
treewide: deprecate DRY_RUN_CMD and DRY_RUN_NULL
As a replacement, this adds the `run` helper function.
2024-04-10 21:27:15 +02:00
Nikita Pedorich
78ece60890
tealdeer: add cache update activation script
Calls 'tldr --update' on home-manager switch
2024-04-10 21:27:15 +02:00
Anton Tetov
2306aabbe7
bemenu: allow floats in settings
For example, the CLI option --width-factor controls the width of the
launcher and is set to a value between 0-1.
2024-04-10 21:27:15 +02:00
Robert Helgesson
6d2e504d9a
k9s: fix unnecessary test dependency 2024-04-10 21:27:14 +02:00
Lucas Wagler
881a15fafa
k9s: v0.29/v0.30 compatibility
- Add `skins` option for definition of multiple skin files
- Change file extension to ".yaml"
- Deprecate `skin` option (points to `skins.skin`)
2024-04-10 21:27:14 +02:00
Nikita Pedorich
50507867fc
mise: fix test
assertPathExists -> assertFileExists
2024-04-10 21:27:14 +02:00
Nikita Pedorich
d17141524d
mise: add module
This adds the support for the mise program, the successor of rtx. This
commit therefore also removes the rtx module.
2024-04-10 21:27:13 +02:00
Samuele Facenda
65bebc010e
hyprland: change plugins settings generation
The previous syntax (`plugin:name { ...settings}`) is not working with
more than one plugin. There is no documentation for this, just the
source code [1].

With this update the plugins paths aren't generated together with the
full config (so the "plugin" field is not "important" anymore) and the
plugins settings are generated like the other fields.

[1] 4d403dac32/src/config/ConfigManager.cpp (L1574)
2024-04-10 21:27:13 +02:00
Samuele Facenda
3b678fe158
hyprland: do not override existing plugins settings in config
The plugin setting in the Hyprland config is used both for defining
plugin paths and configuring the plugins. This fix removes the
silent override of the plugins settings converting them to the
`plugin:<name> { ...settings }` syntax.
2024-04-10 21:27:13 +02:00
Robert Helgesson
8273de29d7
docs, tests: revert to fetchTarball for nmd and nmt
Turns out pulling nmt and nmd from Nixpkgs causes an IFD, even when
the packages are fixed-output derivations.

Thus, since Sourcehut is up and well, we can revert to simply fetching
nmd and nmt directly.

See discussion in <https://github.com/nix-community/home-manager/pull/4884>.
2024-04-10 21:27:13 +02:00
Jared Baur
626966eb51
sway: include cursor environment variables
DBus activated services such as mako use the XCURSOR_THEME and
XCURSOR_SIZE environment variables to decide how to show the cursor,
so without these, the cursor may not match the rest of the desktop
when hovering over (in this example) mako notification surfaces.
2024-04-10 21:27:12 +02:00
Damien Cassou
c08841a279
firefox: restore compatibility for extraPolicies
This commit makes it possible to specify Firefox' extraPolicies
through:

    programs.firefox.package = pkgs.firefox.override {
      extraPolicies = {... }
    }

This was possible in the past but was broken by:

  3feeb77155
  firefox: add support for specifying policies (#4626)
2024-04-10 21:27:11 +02:00
Robert Helgesson
f781ce7fb5
tests: use nmt from Nixpkgs 2024-04-10 21:27:10 +02:00
Robert Helgesson
286546ec2f
Remove some formatting exceptions
This formats a few more file using nixfmt.
2024-04-10 21:27:09 +02:00
Silvio Ankermann
5563347db6
thunderbird: configure signature if set (#4852)
The identity's signature  will be configured according to signature.text
and signature.showSignature. Signature commands are not supported by
Thunderbird.
2024-04-10 21:27:08 +02:00
Gabriel Fontes
725d09c0f0
xdg-portal: add new module 2024-04-10 21:27:07 +02:00
XYenon
21e8b7a7df
yazi: fix nushell integration 2024-04-10 21:27:07 +02:00
~noodlez1232
e8dfd7c0d0
i3blocks: added configuration module 2024-04-10 21:27:06 +02:00
Omer Naveed
ce3ec36b95
bemenu: add module 2024-04-10 21:27:05 +02:00
Robert Helgesson
a7c92eece7
oh-my-posh: fix test under Darwin 2024-04-10 21:27:04 +02:00