Also removed the old haskell.nix file (already in languages.nix).
SAQESPLN5NEDUJBP7X7ZP3OAXBJYC3VKNCTB6FTEYTMMKU23CHEAC {config.flake.modules.hjem.ghostty ={pkgs,lib,theme,isDesktop,...}:letinherit (lib.attrsets) mapAttrsToList;inherit (lib.modules) mkIf;inmkIf isDesktop {packages = [(pkgs.writeTextFile {name = "zellij-ghostty";destination = "/share/applications/zellij-ghostty.desktop";text = ''[Desktop Entry]Name=Zellij GhosttyIcon=ghosttyExec=ghostty -e ${pkgs.zellij}/bin/zellijTerminal=false'';})];rum.programs.ghostty = {enable = false;settings = with theme; {font-size = font.size.term;font-family = font.mono.name;font-feature = "+calt, +liga, +dlig";theme = if theme.color_scheme == "pywal" then "custom" else theme.ghostty;window-padding-x = padding.small;window-padding-y = padding.small;window-decoration = false;scrollback-limit = 100 * 1024 * 1024; # 100 MiBmouse-hide-while-typing = true;confirm-close-surface = false;quit-after-last-window-closed = true;keybind = mapAttrsToList (name: value: "ctrl+shift+${name}=${value}") {c = "copy_to_clipboard";v = "paste_from_clipboard";i = "inspector:toggle";plus = "increase_font_size:1";minus = "decrease_font_size:1";equal = "reset_font_size";};};themes = with theme.withHash; {custom = {background = base00;cursor-color = base05;foreground = base05;selection-background = base02;selection-foreground = base00;palette = mapAttrsToList (name: value: "${name}=${value}") {"0" = base00;"1" = base01;"2" = base02;"3" = base03;"4" = base04;"5" = base05;"6" = base06;"7" = base07;"8" = base08;"9" = base09;"10" = base0A;"11" = base0B;"12" = base0C;"13" = base0D;"14" = base0E;"15" = base0F;};};};};};}
{ pkgs, lib, config, ... }: letinherit (lib) enabled mkIf mapAttrsToList;in mkIf config.isDesktopNotWsl {home-manager.sharedModules = [{programs.ghostty = enabled {clearDefaultKeybinds = true;installBatSyntax = true;settings = with config.theme; {font-size = font.size.term;font-family = font.mono.name;font-feature = "+calt, +liga, +dlig";theme = if config.theme.color_scheme == "pywal" then "custom" else config.theme.ghostty;window-padding-x = padding.small;window-padding-y = padding.small;window-decoration = false;scrollback-limit = 100 * 1024 * 1024; # 100 MiBmouse-hide-while-typing = true;confirm-close-surface = false;quit-after-last-window-closed = true;keybind = mapAttrsToList (name: value: "ctrl+shift+${name}=${value}") {c = "copy_to_clipboard";v = "paste_from_clipboard";i = "inspector:toggle";plus = "increase_font_size:1";minus = "decrease_font_size:1";equal = "reset_font_size";};};themes = with config.theme.withHash; {custom = {background = base00;cursor-color = base05;foreground = base05;selection-background = base02;selection-foreground = base00;palette = mapAttrsToList (name: value: "${name}=${value}") {"0" = base00;"1" = base01;"2" = base02;"3" = base03;"4" = base04;"5" = base05;"6" = base06;"7" = base07;"8" = base08;"9" = base09;"10" = base0A;"11" = base0B;"12" = base0C;"13" = base0D;"14" = base0E;"15" = base0F;};};};};# Desktop entry for Zellij in Fuzzel.xdg.desktopEntries.zellij-ghostty = {name = "Zellij Ghostty";icon = "ghostty";exec = "ghostty -e ${pkgs.zellij}/bin/zellij";terminal = false;};}];}