zaphyra's git: nixfiles

zaphyra's nixfiles

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
31 
32 
33 
34 
35 
36 
37 
38 
39 
40 
41 
42 
43 
44 
{ config, pkgs, ... }:

let
  gnome-online-accounts = pkgs.gnome-online-accounts.overrideAttrs (prevAttrs: {
    mesonFlags = prevAttrs.mesonFlags ++ [
      "-Dexchange=false"
      "-Dgoogle=false"
      "-Dkerberos=false"
      "-Downcloud=false"
      "-Dwindows_live=false"
      "-Dms_graph=false"
    ];
  });

in
{

  home.persistence."/nix/persist/home/${config.home.username}".directories = [
    "evolution-data-server/.local/share/evolution"
    "gnome-online-accounts/.config/goa-1.0"
  ];

  home.packages = with pkgs; [
    gnome-online-accounts-gtk
    (evolution-data-server-gtk4.override {
      withGtk4 = true;
      enableOAuth2 = false;
    })
    gnome-calendar
  ];

  dbus.packages = [ gnome-online-accounts ];

  systemd.user.services.gnome-online-accounts = {
    Unit.Description = "Gnome Online Accounts";

    Service = {
      Type = "dbus";
      ExecStart = "${gnome-online-accounts}/libexec/goa-daemon";
      BusName = "org.gnome.OnlineAccounts";
    };
  };

}