aboutsummaryrefslogtreecommitdiff
path: root/modules/desktop
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-12-27 08:57:11 -0600
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-12-27 08:57:11 -0600
commit6cea964db94f876e8363f0a609160599d53c274c (patch)
tree9be83723574c8cf6e7d475144d35dd63571d676b /modules/desktop
parentc8c90cfbd3c648c81cf8c0181a1e905bb26fee06 (diff)
ghostty
Diffstat (limited to 'modules/desktop')
-rw-r--r--modules/desktop/hjem/default.nix1
-rw-r--r--modules/desktop/hjem/programs/ghostty.nix49
-rw-r--r--modules/desktop/options.nix1
3 files changed, 51 insertions, 0 deletions
diff --git a/modules/desktop/hjem/default.nix b/modules/desktop/hjem/default.nix
index 12623ef..81014c2 100644
--- a/modules/desktop/hjem/default.nix
+++ b/modules/desktop/hjem/default.nix
@@ -10,6 +10,7 @@
./programs/foot.nix
./programs/firefox.nix
+ ./programs/ghostty.nix
./programs/research.nix
];
}
diff --git a/modules/desktop/hjem/programs/ghostty.nix b/modules/desktop/hjem/programs/ghostty.nix
new file mode 100644
index 0000000..7c15d26
--- /dev/null
+++ b/modules/desktop/hjem/programs/ghostty.nix
@@ -0,0 +1,49 @@
+{
+ pkgs,
+ config,
+ lib,
+ ...
+}: let
+ cfg = config.collinux.desktop.programs.ghostty;
+
+ settings = with config.collinux.palette; ''
+ font-family = Iosevka Nerd Font
+ window-theme = ghostty
+
+ background = ${base00}
+ window-titlebar-background = ${base00}
+ foreground = ${base05}
+ window-titlebar-foreground = ${base05}
+
+ selection-background = ${base02}
+ selection-foreground = ${base00}
+
+ palette = 0=${base00}
+ palette = 1=${base08}
+ palette = 2=${base11}
+ palette = 3=${base10}
+ palette = 4=${base13}
+ palette = 5=${base14}
+ palette = 6=${base12}
+ palette = 7=${base05}
+ palette = 8=${base03}
+ palette = 9=${base08}
+ palette = 10=${base11}
+ palette = 11=${base10}
+ palette = 12=${base13}
+ palette = 13=${base14}
+ palette = 14=${base12}
+ palette = 15=${base07}
+ palette = 16=${base09}
+ palette = 17=${base15}
+ palette = 18=${base01}
+ palette = 19=${base02}
+ palette = 20=${base04}
+ palette = 21=${base06}
+ '';
+in
+ lib.mkIf cfg.enable {
+ files.".config/ghostty/config".text = settings;
+
+ packages = [pkgs.ghostty];
+ }
diff --git a/modules/desktop/options.nix b/modules/desktop/options.nix
index 741f79b..1067d0b 100644
--- a/modules/desktop/options.nix
+++ b/modules/desktop/options.nix
@@ -119,6 +119,7 @@ in {
foot = mkProgramOption "foot";
blackbox.enable = mkEnableOption "blackbox";
+ ghostty.enable = mkEnableOption "ghostty";
alacritty.enable = mkEnableOption "alacritty";
research.enable = mkEnableOption "zathura, Xournal++, Zotero, Zotero Connector";