services.lieer: add module

Add 'services.lieer', which generates systemd timer and service units
to synchronize a Gmail account with lieer. Per-account configuration
lives in 'accounts.email.accounts.<name>.lieer.sync'.
This commit is contained in:
Tad Fisher 2020-02-20 23:30:59 -08:00 committed by Robert Helgesson
parent 60a939bd01
commit 9f46d516fa
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
10 changed files with 154 additions and 2 deletions

View file

@ -384,7 +384,7 @@ in
};
accounts = mkOption {
type = types.attrsOf (types.submodule [
type = types.attrsOf (types.submodule ([
mailAccountOpts
(import ../programs/alot-accounts.nix pkgs)
(import ../programs/astroid-accounts.nix)
@ -395,7 +395,9 @@ in
(import ../programs/neomutt-accounts.nix)
(import ../programs/notmuch-accounts.nix)
(import ../programs/offlineimap-accounts.nix)
]);
] ++ optionals pkgs.stdenv.hostPlatform.isLinux [
(import ../services/lieer-accounts.nix)
]));
default = {};
description = "List of email accounts.";
};