setup khal and vdirsyncer
This commit is contained in:
parent
ed224c9a16
commit
282b7ac83d
2 changed files with 45 additions and 0 deletions
|
@ -48,6 +48,12 @@ in {
|
||||||
python # needed for hooks
|
python # needed for hooks
|
||||||
|
|
||||||
taskwarrior-hooks
|
taskwarrior-hooks
|
||||||
|
vdirsyncer
|
||||||
|
khal
|
||||||
|
(pkgs.writers.writeBashBin "kalendar" ''
|
||||||
|
${pkgs.vdirsyncer}/bin/vdirsyncer sync
|
||||||
|
${pkgs.khal}/bin/ikhal
|
||||||
|
'')
|
||||||
|
|
||||||
# bugwarrior
|
# bugwarrior
|
||||||
(let
|
(let
|
||||||
|
|
|
@ -188,6 +188,45 @@ in {
|
||||||
rm -f ~/.xmonad/xmonad.state
|
rm -f ~/.xmonad/xmonad.state
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
xdg.configFile."khal/config".text = ''
|
||||||
|
[calendars]
|
||||||
|
|
||||||
|
[[local_calendar]]
|
||||||
|
path = ~/.calendars/*
|
||||||
|
type = discover
|
||||||
|
|
||||||
|
[locale]
|
||||||
|
timeformat = %H:%M
|
||||||
|
dateformat = %Y-%m-%d
|
||||||
|
longdateformat = %Y-%m-%d
|
||||||
|
datetimeformat = %Y-%m-%d %H:%M
|
||||||
|
longdatetimeformat = %Y-%m-%d %H:%M
|
||||||
|
'';
|
||||||
|
|
||||||
|
xdg.configFile."vdirsyncer/config".text = ''
|
||||||
|
[general]
|
||||||
|
# A folder where vdirsyncer can store some metadata about each pair.
|
||||||
|
status_path = "~/.vdirsyncer/status/"
|
||||||
|
|
||||||
|
# CALDAV
|
||||||
|
[pair my_calendar]
|
||||||
|
a = "nextcloud_calendar"
|
||||||
|
b = "local_calendar"
|
||||||
|
collections = ["from a", "from b"]
|
||||||
|
|
||||||
|
[storage nextcloud_calendar]
|
||||||
|
type = "caldav"
|
||||||
|
url = "https://nextcloud.ingolf-wagner.de/"
|
||||||
|
username = "palo"
|
||||||
|
password.fetch = ["command", "${pkgs.pass}/bin/pass", "home/nextcloud/vdirsyncer/password"]
|
||||||
|
|
||||||
|
[storage local_calendar]
|
||||||
|
type = "filesystem"
|
||||||
|
path = "~/.calendars/"
|
||||||
|
fileext = ".ics"
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = let
|
environment.systemPackages = let
|
||||||
|
|
Loading…
Reference in a new issue