mirror of
https://github.com/nix-community/home-manager
synced 2024-12-02 16:09:46 +01:00
mbsync: skip maildir creation if no account is defined
Fixes #937
(cherry picked from commit 621c98f15a
)
This commit is contained in:
parent
9e69b0d8b9
commit
829b688827
1 changed files with 8 additions and 6 deletions
|
@ -178,11 +178,13 @@ in
|
||||||
++ groupsConfig
|
++ groupsConfig
|
||||||
) + "\n";
|
) + "\n";
|
||||||
|
|
||||||
home.activation.createMaildir =
|
home.activation = mkIf (mbsyncAccounts != []) {
|
||||||
|
createMaildir =
|
||||||
dag.entryBetween [ "linkGeneration" ] [ "writeBoundary" ] ''
|
dag.entryBetween [ "linkGeneration" ] [ "writeBoundary" ] ''
|
||||||
$DRY_RUN_CMD mkdir -m700 -p $VERBOSE_ARG ${
|
$DRY_RUN_CMD mkdir -m700 -p $VERBOSE_ARG ${
|
||||||
concatMapStringsSep " " (a: a.maildir.absPath) mbsyncAccounts
|
concatMapStringsSep " " (a: a.maildir.absPath) mbsyncAccounts
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue