anchor.diff:  with lib;
   
   let
  -
  -  addToXDGDirs = p: ''
  -    if [ -d "${p}/share/gsettings-schemas/${p.name}" ]; then
  -      export XDG_DATA_DIRS=$XDG_DATA_DIRS''${XDG_DATA_DIRS:+:}${p}/share/gsettings-schemas/${p.name}
  -    fi
  -
  -    if [ -d "${p}/lib/girepository-1.0" ]; then
  -      export GI_TYPELIB_PATH=$GI_TYPELIB_PATH''${GI_TYPELIB_PATH:+:}${p}/lib/girepository-1.0
  -      export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}${p}/lib
  -    fi
  -  '';
   
     xcfg = config.services.xserver;
     cfg = xcfg.desktopManager.mate;
  
positive.code:         pkgs.gtk3.out
          pkgs.shared-mime-info
          pkgs.xdg-user-dirs # Update user dirs as described in https://freedesktop.org/wiki/Software/xdg-user-dirs/
          pkgs.mate.mate-settings-daemon
          pkgs.yelp # for 'Contents' in 'Help' menus
        ])
        config.environment.mate.excludePackages;
  
negative.code:       pkgs.mate.mate-session-manager
      ];
  
      # Let caja find extensions
      environment.sessionVariables.CAJA_EXTENSION_DIRS = [ "${config.system.path}/lib/caja/extensions-2.0" ];
  
      # Let mate-panel find applets
      environment.sessionVariables."MATE_PANEL_APPLETS_DIR" = "${config.system.path}/share/mate-panel/applets";
  