Parcourir la source

feat(ghostty): Update ghostty configuration

Zander Hawke il y a 10 mois
Parent
commit
da1b38c1d4
1 fichiers modifiés avec 3 ajouts et 27 suppressions
  1. 3 27
      home/features/desktop/ghostty.nix

+ 3 - 27
home/features/desktop/ghostty.nix

@@ -1,31 +1,8 @@
-{ pkgs
-, config
+{ config
 , lib
 , ...
 }:
-let
-  kanagawaSrc = pkgs.fetchFromGitHub {
-    owner = "rebelot";
-    repo = "kanagawa.nvim";
-    rev = "master";
-    sha256 = "sha256-i54hTf4AEFTiJb+j5llC5+Xvepj43DiNJSq0vPZCIAg=";
-  };
-in
 {
-  xdg.configFile = {
-    "ghostty/themes/kanagawa-dragon".text =
-      lib.strings.fileContents
-        (kanagawaSrc + "/extras/ghostty/kanagawa-dragon");
-
-    "ghostty/themes/kanagawa-lotus".text =
-      lib.strings.fileContents
-        (kanagawaSrc + "/extras/ghostty/kanagawa-lotus");
-
-    "ghostty/themes/kanagawa-wave".text =
-      lib.strings.fileContents
-        (kanagawaSrc + "/extras/ghostty/kanagawa-wave");
-  };
-
   programs.ghostty = {
     enable = true;
     # Ghostty is a terminal emulator for macOS, it is not available in Nixpkgs
@@ -40,18 +17,17 @@ in
     settings = {
       command = "${lib.getExe config.programs.fish.package}";
 
-      background-opacity = 0.9;
+      background-opacity = 0.8;
       font-family = "FiraCode Nerd Font";
       font-size = 16.0;
 
       macos-titlebar-style = "hidden";
-      theme = "kanagawa-dragon";
+      theme = "Kanagawa Dragon";
 
       window-padding-balance = true;
       window-padding-color = "extend";
       window-padding-x = 5;
       window-padding-y = "0,5";
-      window-theme = "dark";
     };
   };
 }