{
  programs.btop = {
    enable = true;
    settings = {
      color_theme = "rose-pine-moon";
    };
  };

  xdg.configFile."btop/themes/rose-pine-moon.theme".text = ''
    # Main background, empty for terminal default, need to be empty if you want transparent background
    theme[main_bg]="#232136"

    # Main text color
    theme[main_fg]="#e0def4"

    # Title color for boxes
    theme[title]="#908caa"

    # Highlight color for keyboard shortcuts
    theme[hi_fg]="#e0def4"

    # Background color of selected item in processes box
    theme[selected_bg]="#56526e"

    # Foreground color of selected item in processes box
    theme[selected_fg]="#f6c177"

    # Color of inactive/disabled text
    theme[inactive_fg]="#44415a"

    # Color of text appearing on top of graphs, i.e uptime and current network graph scaling
    theme[graph_text]="#9ccfd8"

    # Background color of the percentage meters
    theme[meter_bg]="#9ccfd8"

    # Misc colors for processes box including mini cpu graphs, details memory graph and details status text
    theme[proc_misc]="#c4a7e7"

    # Cpu box outline color
    theme[cpu_box]="#ea9a97"

    # Memory/disks box outline color
    theme[mem_box]="#3e8fb0"

    # Net up/down box outline color
    theme[net_box]="#c4a7e7"

    # Processes box outline color
    theme[proc_box]="#eb6f92"

    # Box divider line and small boxes line color
    theme[div_line]="#6e6a86"

    # Temperature graph colors
    theme[temp_start]="#ea9a97"
    theme[temp_mid]="#f6c177"
    theme[temp_end]="#eb6f92"

    # CPU graph colors
    theme[cpu_start]="#f6c177"
    theme[cpu_mid]="#ea9a97"
    theme[cpu_end]="#eb6f92"

    # Mem/Disk free meter
    theme[free_start]="#eb6f92"
    theme[free_mid]="#eb6f92"
    theme[free_end]="#eb6f92"

    # Mem/Disk cached meter
    theme[cached_start]="#c4a7e7"
    theme[cached_mid]="#c4a7e7"
    theme[cached_end]="#c4a7e7"

    # Mem/Disk available meter
    theme[available_start]="#3e8fb0"
    theme[available_mid]="#3e8fb0"
    theme[available_end]="#3e8fb0"

    # Mem/Disk used meter
    theme[used_start]="#ea9a97"
    theme[used_mid]="#ea9a97"
    theme[used_end]="#ea9a97"

    # Download graph colors
    theme[download_start]="#3e8fb0"
    theme[download_mid]="#9ccfd8"
    theme[download_end]="#9ccfd8"

    # Upload graph colors
    theme[upload_start]="#ea9a97"
    theme[upload_mid]="#eb6f92"
    theme[upload_end]="#eb6f92"

    # Process box color gradient for threads, mem and cpu usage
    theme[process_start]="#3e8fb0"
    theme[process_mid]="#9ccfd8"
    theme[process_end]="#9ccfd8"
  '';
}
