btrbk and stuff

This commit is contained in:
Till 2023-07-28 22:58:08 +02:00
parent df81fe36f5
commit 1a15d505bc
7 changed files with 169 additions and 22 deletions

View file

@ -0,0 +1,83 @@
{ config, pkgs, ... }:
let
baikalRemote = slug: {
passwordCommand = [ "secret-tool" "lookup" "server" "baikal.ktiu.net" "account" "till" ];
userName = "till";
type = "caldav";
url = "https://baikal.ktiu.net/dav.php/calendars/till/${slug}";
};
calDefaults = {
# khal.enable = true;
local = {
type = "filesystem";
fileExt = ".ics";
};
vdirsyncer.enable = true;
};
in
{
xdg.configFile."khal/config".source = ./khal.config;
services.vdirsyncer.enable = true;
programs.vdirsyncer.enable = true;
# programs.khal = {
# enable = true;
# locale = {
# timefomat = "%H:%M";
# dateformat = "%d %b";
# longdateformat = "%d %b %Y";
# datetimeformat = "%d %b %H:%M";
# longdatetimeformat = "%d %b %Y %H:%M";
# weeknumbers = "left";
# };
# };
accounts.calendar.basePath = "${config.xdg.dataHome}/calendars";
accounts.calendar.accounts = {
till = calDefaults // {
# primary = true;
# khal.color = "light blue";
remote = baikalRemote "default";
};
mitlisa = calDefaults // {
# khal.color = "light magenta";
remote = baikalRemote "75db196d-bc81-4de3-96dc-d4c068c1234b";
};
family = calDefaults // {
# khal.color = "dark magenta";
remote = baikalRemote "867d77c5-088f-4617-aeb8-6c9a18925e30";
};
bdays = calDefaults // {
# khal.color = "yellow";
remote = baikalRemote "geburtstage";
};
polit = calDefaults // {
# khal.color = "dark gray";
remote = baikalRemote "polit";
};
ihg = {
# khal.color = "dark cyan";
khal.type = "calendar";
remote = {
type = "http";
url = "https://geocom.uni-frankfurt.de/radicale/ihg/5012a739-dbaf-334b-f093-8db1860bc26e/";
};
};
"mittelbau" = {
# khal.color = "light cyan";
remote = {
type = "http";
url = "https://geocom.uni-frankfurt.de/radicale/ihg/d806b31d-dd3d-9d97-d3e5-f179addeb60a/";
};
};
"eintracht" = {
# khal.color = "light red";
remote = {
type = "http";
url = "http://i.cal.to/ical/257/eintrachtfrankfurt/spielplan/6b9cf611.1d2ac477-36f832c0.ics";
};
};
};
}

View file

@ -0,0 +1,62 @@
# vim:ft=cfg
[default]
default_calendar = till
highlight_event_days = true
timedelta = 5d
print_new = event
[calendars]
[[till]]
path = ~/.local/share/calendars/till
color = light blue
[[mitlisa]]
path = ~/.local/share/calendars/mitlisa
color = light magenta
[[family]]
path = ~/.local/share/calendars/family
color = dark magenta
[[bdays]]
path = ~/.local/share/calendars/bdays
color = yellow
[[mittelbau]]
path = ~/.local/share/calendars/mittelbau
color = light cyan
[[ihg]]
path = ~/.local/share/calendars/ihg
color = dark cyan
[[polit]]
path = ~/.local/share/calendars/polit
color = dark gray
[[holidays]]
path = ~/.local/share/calendars/feiertage
color = light green
[[eintracht]]
path = ~/.local/share/calendars/eintracht
color = light red
[locale]
timeformat = %H:%M
dateformat = %d %b
longdateformat = %d %b %Y
datetimeformat = %d %b %H:%M
longdatetimeformat = %d %b %Y %H:%M
weeknumbers = left
[keybindings]
external_edit = ctrl e
[view]
# agenda_event_format = {calendar-color}{cancelled}{start-end-time-style} {title}{repeat-symbol} {location} {reset}
agenda_event_format = {calendar-color}{cancelled}{start-end-time-style} {title}{repeat-symbol} {location} {url}{reset}
event_format = {calendar-color}{cancelled}{start}-{end} {title}{repeat-symbol} {location} {url}{reset}
blank_line_before_day = true