Difference between revisions of "GNOME/Calendar"

From NixOS Wiki
Jump to: navigation, search
(Created page with "The [https://wiki.gnome.org/Apps/Calendar Gnome calendar] is the desktop calendar application built into GNOME. == Using Gnome Calendar outside of GNOME == To use the gnome...")
 
(Updated references to gnome3 as gnome.)
Line 8: Line 8:
 
{
 
{
 
   programs.dconf.enable = true;
 
   programs.dconf.enable = true;
   services.gnome3.evolution-data-server.enable = true;
+
   services.gnome.evolution-data-server.enable = true;
 
   # optional to use google/nextcloud calendar
 
   # optional to use google/nextcloud calendar
   services.gnome3.gnome-online-accounts.enable = true;
+
   services.gnome.gnome-online-accounts.enable = true;
 
   # optional to use google/nextcloud calendar
 
   # optional to use google/nextcloud calendar
   services.gnome3.gnome-keyring.enable = true;
+
   services.gnome.gnome-keyring.enable = true;
 
}
 
}
 
</syntaxHighlight>
 
</syntaxHighlight>
Line 19: Line 19:
  
 
<syntaxHighlight lang="console">
 
<syntaxHighlight lang="console">
$ nix-shell -p gnome3.gnome-control-center --run "gnome-control-center"
+
$ nix-shell -p gnome.gnome-control-center --run "gnome-control-center"
 
</syntaxHighlight>
 
</syntaxHighlight>
  
 
Than add your accounts in the "Online Accounts" submenu.
 
Than add your accounts in the "Online Accounts" submenu.
  
To get alarm reminder you need to start the evolution-alarm-notify deamon provided the <code>gnome3.evolution-data-server</code> package. When you enable <code>services.gnome3.evolution-data-server.enable</code> it will add a desktop autostart entry to <code>/run/current-system/sw/etc/xdg/autostart/org.gnome.Evolution-alarm-notify.desktop</code>. If your desktop manager does not process autostart entries, you can use [https://github.com/jceb/dex dex] instead:
+
To get alarm reminder you need to start the evolution-alarm-notify deamon provided the <code>gnome.evolution-data-server</code> package. When you enable <code>services.gnome.evolution-data-server.enable</code> it will add a desktop autostart entry to <code>/run/current-system/sw/etc/xdg/autostart/org.gnome.Evolution-alarm-notify.desktop</code>. If your desktop manager does not process autostart entries, you can use [https://github.com/jceb/dex dex] instead:
  
 
<syntaxHighlight lang="console">
 
<syntaxHighlight lang="console">
Line 30: Line 30:
 
</syntaxHighlight>
 
</syntaxHighlight>
  
As an alternative you can start <code>libexec/evolution-data-server/evolution-alarm-notify</code> from the <code>gnome3.evolution-data-server</code> directly.
+
As an alternative you can start <code>libexec/evolution-data-server/evolution-alarm-notify</code> from the <code>gnome.evolution-data-server</code> directly.

Revision as of 18:15, 5 October 2022

The Gnome calendar is the desktop calendar application built into GNOME.

Using Gnome Calendar outside of GNOME

To use the gnome calendar outside of gnome, you need the following lines in your configuration.nix:

{
  programs.dconf.enable = true;
  services.gnome.evolution-data-server.enable = true;
  # optional to use google/nextcloud calendar
  services.gnome.gnome-online-accounts.enable = true;
  # optional to use google/nextcloud calendar
  services.gnome.gnome-keyring.enable = true;
}

External calendar such as google/nextcloud can be only added via the gnome-control-center:

$ nix-shell -p gnome.gnome-control-center --run "gnome-control-center"

Than add your accounts in the "Online Accounts" submenu.

To get alarm reminder you need to start the evolution-alarm-notify deamon provided the gnome.evolution-data-server package. When you enable services.gnome.evolution-data-server.enable it will add a desktop autostart entry to /run/current-system/sw/etc/xdg/autostart/org.gnome.Evolution-alarm-notify.desktop. If your desktop manager does not process autostart entries, you can use dex instead:

$ dex --autostart

As an alternative you can start libexec/evolution-data-server/evolution-alarm-notify from the gnome.evolution-data-server directly.