home-manager/modules
Karl Hallsby 82264461e5 mbsync: only generate group/channel configuration if channels present
Typically, when a group is specified, channels will be specified as
well. However, if due to error or mistake, the user forgets to specify
ANY channels for a group, we should not generate that group's
information.

This means that no channels are specified (which maps the remote
master to local slave). In addition, the `Group <gName>` block (which
brings the separate channels together) is also not generated.

Another thing to consider is that a user might specify a group and a
channel, but perform no additional configuration of the channel.
In a configuration, this would be realized by
`accounts.email.accounts.<aName>.mbsync.groups.<gName>.channels.<cName>;`

This creates the channel with the name `<cName>` and the
`masterPattern`, `slavePattern`, and `patterns` fields use their defaults.
By definitions set within mbsync, these defaults actually specify that
the remote master's `INBOX` mail directory is synchronized to the
local slave's `INBOX` directory.

So, if there is a channel that has no fields specified, then we DO
want to generate its configuration. But if there is a group that has
no channels, then we do NOT generate it.
2020-06-27 15:26:11 +02:00
..
accounts Move email account options to their owning modules 2020-06-16 00:45:20 +02:00
lib ne: add module 2020-06-23 22:37:02 +02:00
lib-bash home-manager: respect NIX_STATE_DIR 2020-06-14 20:41:55 +02:00
misc ne: add module 2020-06-23 22:37:02 +02:00
programs mbsync: only generate group/channel configuration if channels present 2020-06-27 15:26:11 +02:00
services emacs: fix service environment 2020-06-24 22:50:30 +02:00
targets generic-linux: respect NIX_STATE_DIR 2020-06-14 23:34:53 +02:00
default.nix Switch to extended Nixpkg's lib 2020-01-21 20:47:04 +01:00
files.nix files: reference lndir through xorg 2020-06-06 13:24:51 +02:00
home-environment.nix home-environment: add full locale options support 2020-06-06 21:23:01 +02:00
manual.nix Switch to extended Nixpkg's lib 2020-01-21 20:47:04 +01:00
modules.nix ne: add module 2020-06-23 22:37:02 +02:00
systemd-activate.rb systemd: improve systemd-activate.rb script 2020-03-24 00:00:44 +01:00
systemd-activate.sh allow Home Manager to be used as a NixOS module 2018-02-07 20:50:01 +01:00
systemd.nix systemd: don't page failed user units 2020-04-23 23:40:58 +02:00
xcursor.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
xresources.nix xresources: give properties option more specific type 2020-02-29 22:32:52 +01:00
xsession.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00