From 468d3a1f043aa8a82a1416c580ba17d72bcb3586 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Mon, 8 Feb 2021 23:29:43 +0300 Subject: [PATCH] Add org-caldav --- machines/T420-Laptop/default.nix | 4 ++-- modules/applications/emacs/default.nix | 6 ++++++ modules/applications/emacs/init.el | 8 ++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/machines/T420-Laptop/default.nix b/machines/T420-Laptop/default.nix index 0d37b7e..5885248 100644 --- a/machines/T420-Laptop/default.nix +++ b/machines/T420-Laptop/default.nix @@ -2,8 +2,8 @@ imports = with inputs.self.nixosModules; [ ./hardware-configuration.nix inputs.self.nixosProfiles.base - gitea - jitsi + # gitea + # jitsi mailserver matrix-synapse minidlna diff --git a/modules/applications/emacs/default.nix b/modules/applications/emacs/default.nix index 76eae81..3b9428c 100644 --- a/modules/applications/emacs/default.nix +++ b/modules/applications/emacs/default.nix @@ -1,4 +1,9 @@ { pkgs, config, lib, ... }: { + # secrets-envsubst.emacs = { + # owner = "balsoft:users"; + # directory = "emacs"; + # }; + home-manager.users.balsoft = { programs.emacs = { enable = true; @@ -50,6 +55,7 @@ edit-indirect idris-mode lsp-mode + org-caldav ]; }; diff --git a/modules/applications/emacs/init.el b/modules/applications/emacs/init.el index babc0ac..d5085dc 100755 --- a/modules/applications/emacs/init.el +++ b/modules/applications/emacs/init.el @@ -229,4 +229,12 @@ If point was already at that position, move point to beginning of line." :server-id 'nix)) ) + +(use-package org-caldav + :config + (setq org-caldav-url "https://nextcloud.balsoft.ru/remote.php/dav/calendars/balsoft") + (setq org-caldav-calendar-id "work") + (setq org-caldav-inbox "/home/balsoft/Documents/Work/calendar.org") + (setq org-icalendar-timezone "Europe/Moscow") + ) ;;; init.el ends here