mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
mbsync: change service unit type to 'oneshot'
The ExecStartPost command is currently started when the mbsync is invoked succesfully. However, we typically want to run something like 'mu index' or 'notmuch new' after mbsync completes. This changes the unit type to oneshot, so that the ExecStartPost command is run after mbsync finishes succesfully.
This commit is contained in:
@@ -87,7 +87,7 @@ in
|
||||
};
|
||||
|
||||
Service = {
|
||||
Type = "simple";
|
||||
Type = "oneshot";
|
||||
ExecStart = "${cfg.package}/bin/mbsync ${concatStringsSep " " mbsyncOptions}";
|
||||
} // (optionalAttrs (cfg.postExec != null) { ExecStartPost = cfg.postExec; })
|
||||
// (optionalAttrs (cfg.preExec != null) { ExecStartPre = cfg.preExec; });
|
||||
|
||||
Reference in New Issue
Block a user