{ config, pkgs, lib, ... }:
{
  ## Home Manager configuration
  home.stateVersion = "24.05";
  # Let Home Manager install and manage itself.
  programs.home-manager.enable = true;

  ## Basic configuration
  home.username = "remy";
  home.homeDirectory = "/home/remy";

  ## Utils relevant to this user only
  programs.git = {
    enable = true;
    settings = {
      user.name = "Remy Moll";
      user.email = "me@moll.re";
    };
  };

  ## XDG configuration
  xdg = {

    mimeApps = {
      enable = true;
      defaultApplications = {
        # TODO
        "inode/directory" = "org.gnome.Nautilus.desktop";
        "application/zip" = "org.gnome.FileRoller.desktop";
        "application/octet-stream" = "org.gnome.GHex.desktop";
        # pdfs
        "application/pdf" = "org.gnome.Evince.desktop";
        # links
        "x-scheme-handler/https" = "firefox.desktop"; # Links
        "x-scheme-handler/http" = "firefox.desktop"; # Links
        # images
        # "image/png" = "org.gnome.Evince.desktop";
        # "image/jpeg" = "org.gnome.Evince.desktop";
        # "image/gif" = "org.gnome.Evince.desktop";
        # "image/svg+xml" = "org.gnome.Evince.desktop";
        # "image/tiff" = "org.gnome.Evince.desktop";
        # text-based
        "text/*" = "vscode.desktop";
      };
    };
  };
}
