1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-10 00:33:39 +02:00

mbsync: skip maildir creation if no account is defined

Fixes #937
This commit is contained in:
Robert Helgesson 2019-12-08 21:46:30 +01:00
parent bcfc52cb85
commit 621c98f15a
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

View File

@ -178,11 +178,13 @@ in
++ groupsConfig
) + "\n";
home.activation.createMaildir =
dag.entryBetween [ "linkGeneration" ] [ "writeBoundary" ] ''
$DRY_RUN_CMD mkdir -m700 -p $VERBOSE_ARG ${
concatMapStringsSep " " (a: a.maildir.absPath) mbsyncAccounts
}
'';
home.activation = mkIf (mbsyncAccounts != []) {
createMaildir =
dag.entryBetween [ "linkGeneration" ] [ "writeBoundary" ] ''
$DRY_RUN_CMD mkdir -m700 -p $VERBOSE_ARG ${
concatMapStringsSep " " (a: a.maildir.absPath) mbsyncAccounts
}
'';
};
};
}