Skip to content

Commit

Permalink
thunderbird: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Dec 20, 2024
1 parent 67d3d24 commit 8eb9f76
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions modules/home/programs/graphical/apps/thunderbird/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8eb9f76

Please sign in to comment.