diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-09-04 22:31:41 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-09-04 22:31:41 +0200 |
commit | c03df807ff2077121c5c269450a5a083433ded9a (patch) | |
tree | 9ad49b2aca73e88b71af719a1ea7204f4adffcbb /user-profiles/feeds/module.nix | |
parent | 51ce5943ac21fd59cc92d788b2d1837ccc6ee495 (diff) | |
download | nixos-c03df807ff2077121c5c269450a5a083433ded9a.tar nixos-c03df807ff2077121c5c269450a5a083433ded9a.tar.gz nixos-c03df807ff2077121c5c269450a5a083433ded9a.tar.bz2 nixos-c03df807ff2077121c5c269450a5a083433ded9a.tar.xz nixos-c03df807ff2077121c5c269450a5a083433ded9a.zip |
feeds: create notmuch db
Diffstat (limited to 'user-profiles/feeds/module.nix')
-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 | } |