mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
getmail: remove redundant filter
This commit is contained in:
parent
dbfcd3292d
commit
5de16c704b
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ let
|
||||||
delete = ${renderGetmailBoolean getmail.delete}
|
delete = ${renderGetmailBoolean getmail.delete}
|
||||||
read_all = ${renderGetmailBoolean getmail.readAll}
|
read_all = ${renderGetmailBoolean getmail.readAll}
|
||||||
'';
|
'';
|
||||||
getmailEnabled = lib.length (lib.filter (a: a.getmail.enable) accounts) > 0;
|
getmailEnabled = lib.length accounts > 0;
|
||||||
# Watch out! This is used by the getmail.service too!
|
# Watch out! This is used by the getmail.service too!
|
||||||
renderConfigFilepath = a: ".getmail/getmail${if a.primary then "rc" else a.name}";
|
renderConfigFilepath = a: ".getmail/getmail${if a.primary then "rc" else a.name}";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue