diff --git a/hostconfig/thinkpad-nixos/hm.nix b/hostconfig/thinkpad-nixos/hm.nix index dcc4fd7..584f698 100644 --- a/hostconfig/thinkpad-nixos/hm.nix +++ b/hostconfig/thinkpad-nixos/hm.nix @@ -221,7 +221,7 @@ enable = true; new.tags = ["new"]; hooks = { - preNew = "mbsync --all"; + preNew = "${pkgs.isync}/bin/mbsync --all"; postNew = let mkProjectMatch = project: "subject:'/PATCH\\s${project}/'"; mkProjectMatches = labels: lib.concatStringsSep " or " (builtins.map mkProjectMatch labels); @@ -284,6 +284,26 @@ }; }; + systemd.user.services.notmuch-new = { + Unit = {Description = "notmuch synchronization";}; + + Service = { + Type = "oneshot"; + ExecStart = "${pkgs.notmuch}/bin/notmuch new"; + }; + }; + + systemd.user.timers.notmuch = { + Unit = {Description = "notmuch synchronization";}; + + Timer = { + OnCalendar = "*:0/5"; + Unit = "notmuch-new.service"; + }; + + Install = {WantedBy = ["default.target"];}; + }; + xdg.desktopEntries.teams = { name = "teams"; exec = "${pkgs.chromium}/bin/chromium --app=https://teams.microsoft.com";