Restructure repo
This commit is contained in:
80
modules/home-manager/accounts/calendar.nix
Normal file
80
modules/home-manager/accounts/calendar.nix
Normal file
@@ -0,0 +1,80 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
programs.pimsync.enable = true;
|
||||
services.pimsync.enable = true;
|
||||
|
||||
accounts.calendar = {
|
||||
basePath = "${config.xdg.dataHome}/calendars";
|
||||
accounts = {
|
||||
"radicale" = {
|
||||
primary = true;
|
||||
primaryCollection = "personal";
|
||||
|
||||
local = {
|
||||
type = "filesystem";
|
||||
fileExt = ".ics";
|
||||
};
|
||||
|
||||
remote = {
|
||||
url = "https://radicale.jelles.net/";
|
||||
type = "caldav";
|
||||
userName = "kiri";
|
||||
# TODO: Bitwarden
|
||||
passwordCommand = [
|
||||
"${pkgs.coreutils}/bin/cat"
|
||||
config.sops.secrets.radicale_pass.path
|
||||
];
|
||||
};
|
||||
|
||||
pimsync = {
|
||||
enable = true;
|
||||
extraPairDirectives = [
|
||||
{
|
||||
name = "collections";
|
||||
params = [ "from b" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
"university" = {
|
||||
remote = {
|
||||
type = "http";
|
||||
};
|
||||
|
||||
local = {
|
||||
type = "filesystem";
|
||||
fileExt = ".ics";
|
||||
};
|
||||
|
||||
pimsync = {
|
||||
enable = true;
|
||||
|
||||
extraRemoteStorageDirectives = [
|
||||
{
|
||||
name = "collection_id";
|
||||
params = [ "events" ];
|
||||
}
|
||||
{
|
||||
name = "url";
|
||||
children = [
|
||||
{
|
||||
name = "cmd";
|
||||
params = [
|
||||
"${pkgs.coreutils}/bin/cat"
|
||||
config.sops.secrets.university_calendar_url.path
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
extraPairDirectives = [
|
||||
{
|
||||
name = "collection";
|
||||
params = [ "events" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user