23 lines
451 B
Nix
Raw Normal View History

2025-05-04 02:47:36 +02:00
{
config,
lib,
...
}:
with lib; let
2025-07-27 22:50:25 +02:00
cfg = config.home.services.mbsync;
2025-05-04 02:47:36 +02:00
in {
2025-07-27 22:50:25 +02:00
options.home.services.mbsync = {
2025-05-04 02:47:36 +02:00
enable = mkEnableOption "Enables mbsync";
service.enable = mkOption {
type = types.bool;
default = true;
};
};
config = mkIf cfg.enable {
systemd.user.services.mbsync.unitConfig.After = ["sops-nix.service"];
services.mbsync.enable = cfg.service.enable;
programs.mbsync.enable = true;
2025-05-04 02:47:36 +02:00
};
}