From b4ba97b495cbb937eb1ee53e72a28519444593d9 Mon Sep 17 00:00:00 2001 From: albert Date: Mon, 6 Jan 2025 13:10:52 -0800 Subject: [PATCH] Fixes and additions --- .../common/desktops/gnome/default.nix | 1 + home-manager/common/software/gui/ghostty.nix | 22 +++++++++++++++++++ .../themes/default/home-manager/ghostty.nix | 4 ++++ stylix/themes/green/home-manager/ghostty.nix | 4 ++++ .../themes/gruvbox/home-manager/ghostty.nix | 4 ++++ .../sakura-day/home-manager/ghostty.nix | 4 ++++ .../sakura-night/home-manager/ghostty.nix | 4 ++++ .../stylix-day/home-manager/ghostty.nix | 4 ++++ stylix/themes/stylix/home-manager/ghostty.nix | 4 ++++ .../themes/tokyo-day/home-manager/ghostty.nix | 4 ++++ .../tokyo-night/home-manager/ghostty.nix | 4 ++++ 11 files changed, 59 insertions(+) create mode 100644 home-manager/common/software/gui/ghostty.nix create mode 100644 stylix/themes/default/home-manager/ghostty.nix create mode 100644 stylix/themes/green/home-manager/ghostty.nix create mode 100644 stylix/themes/gruvbox/home-manager/ghostty.nix create mode 100644 stylix/themes/sakura-day/home-manager/ghostty.nix create mode 100644 stylix/themes/sakura-night/home-manager/ghostty.nix create mode 100644 stylix/themes/stylix-day/home-manager/ghostty.nix create mode 100644 stylix/themes/stylix/home-manager/ghostty.nix create mode 100644 stylix/themes/tokyo-day/home-manager/ghostty.nix create mode 100644 stylix/themes/tokyo-night/home-manager/ghostty.nix diff --git a/home-manager/common/desktops/gnome/default.nix b/home-manager/common/desktops/gnome/default.nix index 2084c093..e3dd2b9d 100644 --- a/home-manager/common/desktops/gnome/default.nix +++ b/home-manager/common/desktops/gnome/default.nix @@ -2,6 +2,7 @@ { ... }: { imports = [ ./dconf.nix + ../../software/gui/ghostty.nix ]; programs.bash.sessionVariables = { DISABLE_TMUX = "true"; diff --git a/home-manager/common/software/gui/ghostty.nix b/home-manager/common/software/gui/ghostty.nix new file mode 100644 index 00000000..ed66a304 --- /dev/null +++ b/home-manager/common/software/gui/ghostty.nix @@ -0,0 +1,22 @@ +{ theme, ... }: { + + imports = [ ../../../../stylix/themes/${theme}/home-manager/ghostty.nix ]; + + programs.ghostty = { + enable = true; + enableBashIntegration = true; + enableFishIntegration = true; + enableZshIntegration = true; + installBatSyntax = true; + installVimSyntax = true; + settings = { + font-size = 10; + cursor-style = "bar"; + keybind = [ + "shift+right=next_tab" + "shift+left=previous_tab" + "shift+up=toggle_tab_overview" + ]; + }; + }; +} diff --git a/stylix/themes/default/home-manager/ghostty.nix b/stylix/themes/default/home-manager/ghostty.nix new file mode 100644 index 00000000..4a1fcc39 --- /dev/null +++ b/stylix/themes/default/home-manager/ghostty.nix @@ -0,0 +1,4 @@ +{ lib, ... }: { + programs.ghostty.settings.theme = lib.mkForce "Ayu Mirage"; + stylix.targets.ghostty.enable = false; +} diff --git a/stylix/themes/green/home-manager/ghostty.nix b/stylix/themes/green/home-manager/ghostty.nix new file mode 100644 index 00000000..4a1fcc39 --- /dev/null +++ b/stylix/themes/green/home-manager/ghostty.nix @@ -0,0 +1,4 @@ +{ lib, ... }: { + programs.ghostty.settings.theme = lib.mkForce "Ayu Mirage"; + stylix.targets.ghostty.enable = false; +} diff --git a/stylix/themes/gruvbox/home-manager/ghostty.nix b/stylix/themes/gruvbox/home-manager/ghostty.nix new file mode 100644 index 00000000..0242d734 --- /dev/null +++ b/stylix/themes/gruvbox/home-manager/ghostty.nix @@ -0,0 +1,4 @@ +{ lib, ... }: { + programs.ghostty.settings.theme = lib.mkForce "GruvboxDark"; + stylix.targets.ghostty.enable = false; +} diff --git a/stylix/themes/sakura-day/home-manager/ghostty.nix b/stylix/themes/sakura-day/home-manager/ghostty.nix new file mode 100644 index 00000000..0a2c1eaa --- /dev/null +++ b/stylix/themes/sakura-day/home-manager/ghostty.nix @@ -0,0 +1,4 @@ +{ lib, ... }: { + programs.ghostty.settings.theme = lib.mkForce "catpuccin-latte"; + stylix.targets.ghostty.enable = false; +} diff --git a/stylix/themes/sakura-night/home-manager/ghostty.nix b/stylix/themes/sakura-night/home-manager/ghostty.nix new file mode 100644 index 00000000..c9e0467f --- /dev/null +++ b/stylix/themes/sakura-night/home-manager/ghostty.nix @@ -0,0 +1,4 @@ +{ lib, ... }: { + programs.ghostty.settings.theme = lib.mkForce "sakura"; + stylix.targets.ghostty.enable = false; +} diff --git a/stylix/themes/stylix-day/home-manager/ghostty.nix b/stylix/themes/stylix-day/home-manager/ghostty.nix new file mode 100644 index 00000000..4a1fcc39 --- /dev/null +++ b/stylix/themes/stylix-day/home-manager/ghostty.nix @@ -0,0 +1,4 @@ +{ lib, ... }: { + programs.ghostty.settings.theme = lib.mkForce "Ayu Mirage"; + stylix.targets.ghostty.enable = false; +} diff --git a/stylix/themes/stylix/home-manager/ghostty.nix b/stylix/themes/stylix/home-manager/ghostty.nix new file mode 100644 index 00000000..4a1fcc39 --- /dev/null +++ b/stylix/themes/stylix/home-manager/ghostty.nix @@ -0,0 +1,4 @@ +{ lib, ... }: { + programs.ghostty.settings.theme = lib.mkForce "Ayu Mirage"; + stylix.targets.ghostty.enable = false; +} diff --git a/stylix/themes/tokyo-day/home-manager/ghostty.nix b/stylix/themes/tokyo-day/home-manager/ghostty.nix new file mode 100644 index 00000000..4a1fcc39 --- /dev/null +++ b/stylix/themes/tokyo-day/home-manager/ghostty.nix @@ -0,0 +1,4 @@ +{ lib, ... }: { + programs.ghostty.settings.theme = lib.mkForce "Ayu Mirage"; + stylix.targets.ghostty.enable = false; +} diff --git a/stylix/themes/tokyo-night/home-manager/ghostty.nix b/stylix/themes/tokyo-night/home-manager/ghostty.nix new file mode 100644 index 00000000..429db0f2 --- /dev/null +++ b/stylix/themes/tokyo-night/home-manager/ghostty.nix @@ -0,0 +1,4 @@ +{ lib, ... }: { + programs.ghostty.settings.theme = lib.mkForce "tokyonight_night"; + stylix.targets.ghostty.enable = false; +}