From 8eb9f7682cd1a2c211247d4cb20a7f5b17eca484 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Thu, 19 Dec 2024 20:20:40 -0600 Subject: [PATCH] thunderbird: lint --- .../graphical/apps/thunderbird/default.nix | 30 +++++++++---------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/modules/home/programs/graphical/apps/thunderbird/default.nix b/modules/home/programs/graphical/apps/thunderbird/default.nix index c3d8d327..ae30bd08 100644 --- a/modules/home/programs/graphical/apps/thunderbird/default.nix +++ b/modules/home/programs/graphical/apps/thunderbird/default.nix @@ -17,21 +17,19 @@ in extraAccounts = lib.mkOption { type = let - accountType = ( - lib.types.submodule { - options = { - address = mkOpt lib.types.str null "Email address"; - flavor = mkOpt (lib.types.enum [ - "plain" - "gmail.com" - "runbox.com" - "fastmail.com" - "yandex.com" - "outlook.office365.com" - ]) null "Email flavor"; - }; - } - ); + accountType = lib.types.submodule { + options = { + address = mkOpt lib.types.str null "Email address"; + flavor = mkOpt (lib.types.enum [ + "plain" + "gmail.com" + "runbox.com" + "fastmail.com" + "yandex.com" + "outlook.office365.com" + ]) null "Email flavor"; + }; + }; in lib.types.attrsOf accountType; default = null; @@ -79,7 +77,7 @@ in flavor = "gmail.com"; }; } - // lib.mapAttrs (_name: value: mkEmailConfig value) cfg.extraAccounts; + // lib.mapAttrs (_name: mkEmailConfig) cfg.extraAccounts; programs.thunderbird = { enable = true;