From 2c36e9738aed8e36ee0e44ee916ddcc6c2006917 Mon Sep 17 00:00:00 2001 From: kiri Date: Mon, 1 Dec 2025 01:58:23 +0100 Subject: [PATCH] Make sure calendar folders exist --- modules/home-manager/accounts/calendar.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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;