Steam deck perhaps

This commit is contained in:
2023-06-24 16:27:46 +01:00
parent 5eb965823e
commit 8864fc294d
120 changed files with 208 additions and 339 deletions

View File

@@ -0,0 +1,107 @@
{
pkgs,
lib,
hostname,
...
}: let
wrap_gl = program: let
name = lib.strings.getName program.name;
in
pkgs.symlinkJoin {
name = name;
paths = [
(pkgs.writeShellScriptBin name ''
${pkgs.nixgl.nixGLIntel}/bin/nixGLIntel ${program}/bin/${name}
'')
program
];
};
package =
if hostname == "deck"
then (wrap_gl pkgs.kitty)
else pkgs.kitty;
in {
home.file.".config/kitty/catppuccin.conf" = {
source = ./catppuccin.conf;
};
programs.kitty = {
enable = true;
font = {
name = "Iosevka Nerd Font";
};
package = package;
settings = {
"include" = "catppuccin.conf";
"scrollback_lines" = 50000;
"shell_integration" = "enabled no-cursor";
"cursor_shape" = "underline";
"cursor_blink_interval" = 0;
"disable_ligatures" = "always";
"enable_audio_bell" = "no";
"tab_bar_margin_width" = "10";
"tab_bar_margin_height" = "0 1";
"tab_bar_edge" = "top";
"tab_bar_style" = "powerline";
"tab_powerline_style" = "slanted";
# "foreground" = "#f8f8f2";
# "background" = "#282a36";
# "selection_foreground" = "#ffffff";
# "selection_background" = "#44475a";
#
# "url_color" = "#8be9fd";
#
# # black
# "color0" = "#21222c";
# "color8" = "#6272a4";
#
# # red
# "color1" = "#ff5555";
# "color9" = "#ff6e6e";
#
# # green
# "color2" = "#50fa7b";
# "color10" = "#69ff94";
#
# # yellow
# "color3" = "#f1fa8c";
# "color11" = "#ffffa5";
#
# # blue
# "color4" = "#bd93f9";
# "color12" = "#d6acff";
#
# # magenta
# "color5" = "#ff79c6";
# "color13" = "#ff92df";
#
# # cyan
# "color6" = "#8be9fd";
# "color14" = "#a4ffff";
#
# # white
# "color7" = "#f8f8f2";
# "color15" = "#ffffff";
#
# # Cursor colors
# "cursor" = "#f8f8f2";
# "cursor_text_color" = "background";
#
# # Tab bar colors
# "active_tab_foreground" = "#282a36";
# "active_tab_background" = "#f8f8f2";
# "inactive_tab_foreground" = "#282a36";
# "inactive_tab_background" = "#6272a4";
#
# # Marks
# "mark1_foreground" = "#282a36";
# "mark1_background" = "#ff5555";
};
};
}