add unused calendar application placeholder

This commit is contained in:
Noah Masur 2024-08-18 16:42:10 -04:00
parent e43f6cf000
commit e6644ab7b9
No known key found for this signature in database
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{
config,
pkgs,
lib,
...
}:
{
options = {
calendar = {
enable = lib.mkEnableOption {
description = "Enable calendar.";
default = false;
};
};
};
config = lib.mkIf (config.gui.enable && config.calendar.enable) {
home-manager.users.${config.user} = {
accounts.calendar.accounts.default = {
basePath = "other/calendars"; # Where to save calendars in ~ directory
name = "personal";
local.type = "filesystem";
primary = true;
remote = {
passwordCommand = [ "" ];
type = "caldav";
url = "https://${config.hostnames.content}/remote.php/dav/principals/users/${config.user}";
userName = config.user;
};
};
home.packages = with pkgs; [ gnome-calendar ];
};
};
}

View File

@ -2,6 +2,7 @@
{
imports = [
./calendar.nix
./calibre.nix
./nautilus.nix
];