diff --git a/modules/home-manager/accounts/calendar.nix b/modules/home-manager/accounts/calendar.nix index e05baf9..9363428 100644 --- a/modules/home-manager/accounts/calendar.nix +++ b/modules/home-manager/accounts/calendar.nix @@ -1,10 +1,19 @@ { config, pkgs, ... }: +let + calendarsPath = "${config.xdg.dataHome}/calendars"; +in { programs.pimsync.enable = true; services.pimsync.enable = true; + systemd.user.tmpfiles.rules = [ + "d ${calendarsPath} 0700 - - - -" + "d ${calendarsPath}/radicale 0700 - - - -" + "d ${calendarsPath}/university 0700 - - - -" + ]; + accounts.calendar = { - basePath = "${config.xdg.dataHome}/calendars"; + basePath = calendarsPath; accounts = { "radicale" = { primary = true;