# Home Manager User's Misc Configuration
_: let
  home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
in {
  imports = [
    (import "${home-manager}/nixos")
  ];

  home-manager.users.user = {pkgs, ...}: {
    home = {
      pointerCursor = {
        gtk.enable = true;
        package = pkgs.bibata-cursors;
        # Easily find the exact names using lxappearance
        name = "Bibata-Original-Classic";
        size = 30;

        x11 = {
          enable = true;
          # Easily find the exact names using lxappearance
          defaultCursor = "Bibata-Original-Classic";
        };
      };
    };

    # Some applications (e.g. Firefox) don't seem to use XSETTINGS to control text rendering
    # Putting these settings in ~/.Xresources seems to work
    xresources.properties = {
      # Font
      # "Xft.dpi" = 100;
      "Xft.antialias" = 1;
      "Xft.hinting" = 1;
      "Xft.autohint" = 0;
      "Xft.hintstyle" = "hintmedium";
      # "Xft.rgba" = "rgb";
    };
  };
}
