diff options
| -rw-r--r-- | user-profiles/feeds/module.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/user-profiles/feeds/module.nix b/user-profiles/feeds/module.nix index aa04cb48..9a0aceba 100644 --- a/user-profiles/feeds/module.nix +++ b/user-profiles/feeds/module.nix | |||
| @@ -99,8 +99,15 @@ in { | |||
| 99 | # Generated by Home Manager. | 99 | # Generated by Home Manager. |
| 100 | '' + toIni notmuchIni; | 100 | '' + toIni notmuchIni; |
| 101 | 101 | ||
| 102 | home.activation.createFeedsDatabase = hm.dag.entryAfter ["writeBoundary"] '' | 102 | home.activation.createFeedsDatabase = hm.dag.entryAfter ["linkGeneration" "writeBoundary"] '' |
| 103 | $DRY_RUN_CMD mkdir -p $VERBOSE_ARG ${databasePath} | 103 | $DRY_RUN_CMD mkdir -p $VERBOSE_ARG ${databasePath} |
| 104 | if ! [[ -d ${databasePath}/.notmuch ]]; then | ||
| 105 | NOTMUCH_VERBOSE_ARG="--quiet" | ||
| 106 | if [[ -v VERBOSE ]]; then | ||
| 107 | NOTMUCH_VERBOSE_ARG="--verbose" | ||
| 108 | fi | ||
| 109 | NOTMUCH_CONFIG=${configPath} $DRY_RUN_CMD ${pkgs.notmuch}/bin/notmuch $NOTMUCH_VERBOSE_ARG new | ||
| 110 | fi | ||
| 104 | ''; | 111 | ''; |
| 105 | }; | 112 | }; |
| 106 | } | 113 | } |
