73 lines · 1.3 KB
{pkgs, ...}: {
  home.packages = with pkgs; [
    rio
  ];

  xdg.configFile."rio/config.toml".text = let
    colors =
      import ./colors.nix;

    home =
      if pkgs.stdenv.isDarwin
      then "/Users/christian"
      else "/home/christian";
  in ''
    hide-cursor-when-typing = true
    padding-x = 16
    padding-y = [4, 8]
    option-as-alt = 'left'
    confirm-before-quit = false

    [editor]
    program = "${home}/.nix-profile/bin/nvim"
    args = []

    [window]
    width = 600
    height = 640
    mode = "Windowed"
    opacity = 0.98
    blur = true
    decorations = "Buttonless"

    line-height = 1.2

    [fonts]
    size = 13

    [fonts.regular]
    family = "JetBrains Mono"
    style = "Normal"