From 4baf48b163eb2527f0cd81748bdfa19bc0159083 Mon Sep 17 00:00:00 2001 From: Saku Laesvuori Date: Sun, 16 Aug 2026 12:48:13 +0300 Subject: [PATCH] =?UTF-8?q?Lis=C3=A4=C3=A4=20OMS-kalenteri=20OMS-k=C3=A4yt?= =?UTF-8?q?t=C3=A4j=C3=A4lle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/oms-evolution-calendar.source | 44 +++++++++++++++++++++++++++++ modules/oms/home.scm | 9 ++++-- 2 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 files/oms-evolution-calendar.source diff --git a/files/oms-evolution-calendar.source b/files/oms-evolution-calendar.source new file mode 100644 index 0000000..f458c41 --- /dev/null +++ b/files/oms-evolution-calendar.source @@ -0,0 +1,44 @@ +[Data Source] +DisplayName=OMS +Enabled=true +Parent=webcal-stub + +[Authentication] +Host=calendar.google.com +Method=plain/password +Port=443 +ProxyUid=system-proxy +RememberPassword=true +User= +CredentialName= +IsExternal=false + +[Security] +Method=tls + +[WebDAV Backend] +AvoidIfmatch=false +CalendarAutoSchedule=false +Color= +DisplayName= +EmailAddress= +ResourcePath=/calendar/ical/olarinmaensamoojat@gmail.com/public/basic.ics +ResourceQuery= +SslTrust= +Order=4294967295 +Timeout=30 +LimitDownloadDays=0 + +[Calendar] +BackendName=webcal +Color=rgb(38,162,105) +Selected=true +Order=0 + +[Offline] +StaySynchronized=true + +[Refresh] +Enabled=true +EnabledOnMeteredNetwork=true +IntervalMinutes=30 diff --git a/modules/oms/home.scm b/modules/oms/home.scm index c521ad3..bb3c930 100644 --- a/modules/oms/home.scm +++ b/modules/oms/home.scm @@ -19,7 +19,8 @@ #:use-module (gnu packages tex) #:use-module (gnu packages version-control) #:use-module (gnu packages video) - #:use-module (guix gexp)) + #:use-module (guix gexp) + #:use-module (oms channel-file)) (define-public oms-home-environment (home-environment @@ -64,5 +65,9 @@ 'autostart-tour home-xdg-configuration-files-service-type `(("autostart/gnome-tour.desktop" ,(file-append gnome-tour - "/share/applications/org.gnome.Tour.desktop"))))) + "/share/applications/org.gnome.Tour.desktop")))) + (simple-service + 'oms-calendar home-xdg-configuration-files-service-type + `(("evolution/sources/oms.source" + ,(channel-file "oms-evolution-calendar.source"))))) %base-home-services))))