~tommoa/dots

0c8daf19541e8342d9216079cda65eb60496a34e — Tom Almeida 6 months ago 4e6c148
chore(nixpkgs): Disable goimapnotify

The file size is too large at the moment, it should be disabled
1 files changed, 45 insertions(+), 45 deletions(-)

M .config/nixpkgs/darwin/configuration.nix
M .config/nixpkgs/darwin/configuration.nix => .config/nixpkgs/darwin/configuration.nix +45 -45
@@ 81,51 81,51 @@
  # Auto upgrade nix package
  nix.package = pkgs.nix;

  launchd.user.agents = with builtins; let
    goimapnotify-conffiles = (filter (filename: (match ".*\.conf" filename) != null) (attrNames (readDir ~/.config/imapnotify)));
    goimapnotify-agents = listToAttrs
      (map
        (name: {
          name = "goimapnotify-${name}";
          value = {
            serviceConfig = {
              ProgramArguments = [
                "${pkgs.goimapnotify}/bin/goimapnotify"
                "-conf"
                (toString ~/.config/imapnotify + "/${name}")
              ];
              RunAtLoad = true;
              EnvironmentVariables = {
                PATH = "${pkgs.goimapnotify}/bin:${pkgs.notmuch}/bin:${pkgs.isync}/bin:${config.environment.systemPath}";
                NIX_SSL_CERT_FILE = "/etc/ssl/certs/ca-certificates.crt";
              };
              KeepAlive = true;
              ProcessType = "Background";
            };
          };
        })
        goimapnotify-conffiles);
    vdirsyncer-timers = {
      vdirsyncer-sync = {
        serviceConfig = {
          ProgramArguments = [
            "${pkgs.vdirsyncer}/bin/vdirsyncer"
            "sync"
          ];
          RunAtLoad = true;
          KeepAlive = false;
          ProcessType = "Background";
          StartCalendarInterval = [
            { Minute = 0; }
            { Minute = 15; }
            { Minute = 30; }
            { Minute = 45; }
          ];
        };
      };
    };
  in
  goimapnotify-agents // vdirsyncer-timers;
  # launchd.user.agents = with builtins; let
  #   goimapnotify-conffiles = (filter (filename: (match ".*\.conf" filename) != null) (attrNames (readDir ~/.config/imapnotify)));
  #   goimapnotify-agents = listToAttrs
  #     (map
  #       (name: {
  #         name = "goimapnotify-${name}";
  #         value = {
  #           serviceConfig = {
  #             ProgramArguments = [
  #               "${pkgs.goimapnotify}/bin/goimapnotify"
  #               "-conf"
  #               (toString ~/.config/imapnotify + "/${name}")
  #             ];
  #             RunAtLoad = true;
  #             EnvironmentVariables = {
  #               PATH = "${pkgs.goimapnotify}/bin:${pkgs.notmuch}/bin:${pkgs.isync}/bin:${config.environment.systemPath}";
  #               NIX_SSL_CERT_FILE = "/etc/ssl/certs/ca-certificates.crt";
  #             };
  #             KeepAlive = true;
  #             ProcessType = "Background";
  #           };
  #         };
  #       })
  #       goimapnotify-conffiles);
  #   vdirsyncer-timers = {
  #     vdirsyncer-sync = {
  #       serviceConfig = {
  #         ProgramArguments = [
  #           "${pkgs.vdirsyncer}/bin/vdirsyncer"
  #           "sync"
  #         ];
  #         RunAtLoad = true;
  #         KeepAlive = false;
  #         ProcessType = "Background";
  #         StartCalendarInterval = [
  #           { Minute = 0; }
  #           { Minute = 15; }
  #           { Minute = 30; }
  #           { Minute = 45; }
  #         ];
  #       };
  #     };
  #   };
  # in
  # goimapnotify-agents // vdirsyncer-timers;

  programs.zsh.enable = true;