1
0
Fork 0
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:
Adam Dinwoodie 2025-08-05 15:04:45 +01:00 committed by Austin Horstman
parent dbfcd3292d
commit 5de16c704b

View file

@ -47,7 +47,7 @@ let
delete = ${renderGetmailBoolean getmail.delete}
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!
renderConfigFilepath = a: ".getmail/getmail${if a.primary then "rc" else a.name}";