1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-28 17:38:33 +02:00
home-manager/modules
Genevieve bec87d536c
aerc: add assertion to limit per-account extraConfig to UI config (#4196)
* aerc: fix per-account extraConfig section names

The aerc configuration file `aerc.conf` can contain 10 different
sections, but only the UI section supports what the aerc manual calls
contextual configuration. This works by appending to the section heading
either `:account=name` or `:folder=bar`.

The aerc-accounts module, however, applied `mkAccountConfig` to each
section heading declared in
`config.accounts.email.accounts.<name>.aerc.extraConfig.*`. This means
home-manager will generate files with `[general:account=default]` and
the options will not be recognized by aerc.

To address this, and since it doesn't make sense for other sections to
only be under a single account's scope, an assertion has been added
to confirm that only sectons that support contextual config (i.e.,
only the UI section) is declared.

This also addresses confusions like declaring
`accounts.email.accounts.*.aerc.extraConfig.general.unsafe-accounts-conf
= true` and triggering a warning message because
`programs.aerc.extraConfig.general.unsafe-accounts-conf` was unset.

This commit also updated documentation throughout the aerc modules to
be in line with this change, and fixed minor typos/formatting therein.

Co-authored-by: Genevieve <genevieve@sunlashed.garden>

* aerc: make assertion plaintext and add test case

This commit adds a test case to check both the warning on unset
`unsafe-accounts-conf = true` when aerc accounts are configured
with Nix, and the new assertion when per-account configuration
contains unsupported subsections (i.e. general).

It also fixes minor formatting issues and typos.
2023-07-14 20:34:28 +02:00
..
accounts programs.khal 2023-07-04 12:14:47 +02:00
config i18n: Use glibcLocales from NixOS if possible (#2333) (#4177) 2023-07-04 11:28:25 +02:00
i18n/input-method im/fcitx: drop as fcitx 4 has been removed from nixpkgs (#3804) 2023-03-25 15:32:31 +01:00
launchd launchd: sync option definition with nix-darwin 2023-03-25 23:59:58 +01:00
lib programs.joshuto: add the joshuto file manager (#4004) 2023-06-12 12:02:09 +02:00
lib-bash home-manager: verify username and home directory 2023-05-27 09:14:05 +02:00
misc ssh-agent: add assertion and fix news entry (#4210) 2023-07-10 16:37:49 +02:00
po Translate using Weblate (Indonesian) 2023-07-04 12:41:08 +02:00
programs aerc: add assertion to limit per-account extraConfig to UI config (#4196) 2023-07-14 20:34:28 +02:00
services ssh-agent: add assertion and fix news entry (#4210) 2023-07-10 16:37:49 +02:00
targets treewide: fix typos 2022-12-05 12:58:02 +01:00
default.nix Add lib argument to homeManagerConfiguration (#2753) 2022-04-17 18:14:41 -04:00
files.nix lib/file-type: fix xrefs (#4007) 2023-05-22 22:48:23 +02:00
home-environment.nix home-environment: allow skipping sanity checks 2023-06-21 00:52:20 +02:00
manual.nix format: update and remove exceptions (#3029) 2022-06-16 14:13:06 +02:00
modules.nix swayosd: add module 2023-07-08 12:09:09 +02:00
systemd-activate.rb Revert "systemd: use sd-switch" 2020-08-04 19:38:14 +02:00
systemd-activate.sh Revert "systemd: use sd-switch" 2020-08-04 19:38:14 +02:00
systemd.nix systemd: accept derivations as values for systemd options (#3974) 2023-05-11 15:50:37 +02:00
xresources.nix Replace usage of literalExample 2021-10-13 00:16:10 +02:00
xsession.nix xsession: cleanup systemd variables (#3636) 2023-05-07 23:59:56 +02:00