lieer: change settings to freeform type
Also add missing options.
This commit is contained in:
parent
4b964d2f7b
commit
514acaebb9
6 changed files with 241 additions and 123 deletions
|
|
@ -1,25 +0,0 @@
|
|||
{ lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
options.lieer.sync = {
|
||||
enable = mkEnableOption "lieer synchronization service";
|
||||
|
||||
frequency = mkOption {
|
||||
type = types.str;
|
||||
default = "*:0/5";
|
||||
description = ''
|
||||
How often to synchronize the account.
|
||||
</para><para>
|
||||
This value is passed to the systemd timer configuration as the
|
||||
onCalendar option. See
|
||||
<citerefentry>
|
||||
<refentrytitle>systemd.time</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
</citerefentry>
|
||||
for more information about the format.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -51,14 +51,8 @@ let
|
|||
in {
|
||||
meta.maintainers = [ maintainers.tadfisher ];
|
||||
|
||||
options = {
|
||||
services.lieer.enable =
|
||||
mkEnableOption "lieer Gmail synchronization service";
|
||||
|
||||
accounts.email.accounts = mkOption {
|
||||
type = with types; attrsOf (submodule (import ./lieer-accounts.nix));
|
||||
};
|
||||
};
|
||||
options.services.lieer.enable =
|
||||
mkEnableOption "lieer Gmail synchronization service";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
assertions = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue