HASH 8a0a7d444cdb
DATE 2025-01-21
SUBJECT ghostty: add shaders derivation
FILES 3 CHANGED
HASH 8a0a7d444cdb
DATE 2025-01-21
SUBJECT ghostty: add shaders derivation
FILES 3 CHANGED
┌─ modules/home/workstation/terminal/ghostty.nix ────────────────────────────┐
│ diff --git a/modules/home/workstation/terminal/ghostty.nix b/modules/home/workstat │
│ ion/terminal/ghostty.nix │
│ index 9c965fc..ffc0f2c 100644 │
│ --- a/modules/home/workstation/terminal/ghostty.nix │
│ +++ b/modules/home/workstation/terminal/ghostty.nix │
│ @@ -11,6 +11,8 @@ │
│ inherit (osConfig.ooknet.appearance.fonts) monospace; │
│ inherit (osConfig.ooknet.workstation) default; │
│ │
│ + # getShader = shader: "${self'.packages.ghostty-shaders}/${shader}.glsl"; │
│ + │
│ cfg = osConfig.ooknet.workstation.programs.ghostty; │
│ in { │
│ config = mkMerge [ │
│ @@ -18,6 +20,7 @@ in { │
│ programs.ghostty = { │
│ enable = true; │
│ enableFishIntegration = admin.shell == "fish"; │
│ + clearDefaultKeybinds = true; │
│ settings = { │
│ # defined below │
│ theme = "hozen"; │
│ @@ -36,9 +39,10 @@ in { │
│ # box drawing glyph thickness │
│ adjust-box-thickness = -10; # why where they so thick? │
│ │
│ - # disable the window decorations │
│ + # disable the decorations │
│ gtk-titlebar = false; │
│ window-decoration = false; │
│ + resize-overlay = "never"; │
│ │
│ # disable close terminal prompt │
│ confirm-close-surface = false; │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...kstation/terminal/ghostty.nix ───┐
│ diff --git a/modules/home/workstation/termin │
│ al/ghostty.nix b/modules/home/workstation/te │
│ rminal/ghostty.nix │
│ index 9c965fc..ffc0f2c 100644 │
│ --- a/modules/home/workstation/terminal/ghos │
│ tty.nix │
│ +++ b/modules/home/workstation/terminal/ghos │
│ tty.nix │
│ @@ -11,6 +11,8 @@ │
│ inherit (osConfig.ooknet.appearance.fonts │
│ ) monospace; │
│ inherit (osConfig.ooknet.workstation) def │
│ ault; │
│ │
│ + # getShader = shader: "${self'.packages.g │
│ hostty-shaders}/${shader}.glsl"; │
│ + │
│ cfg = osConfig.ooknet.workstation.program │
│ s.ghostty; │
│ in { │
│ config = mkMerge [ │
│ @@ -18,6 +20,7 @@ in { │
│ programs.ghostty = { │
│ enable = true; │
│ enableFishIntegration = admin.shell │
│ == "fish"; │
│ + clearDefaultKeybinds = true; │
│ settings = { │
│ # defined below │
│ theme = "hozen"; │
│ @@ -36,9 +39,10 @@ in { │
│ # box drawing glyph thickness │
│ adjust-box-thickness = -10; # why │
│ where they so thick? │
│ │
│ - # disable the window decorations │
│ + # disable the decorations │
│ gtk-titlebar = false; │
│ window-decoration = false; │
│ + resize-overlay = "never"; │
│ │
│ # disable close terminal prompt │
│ confirm-close-surface = false; │
└──────────────────────────────────────────────┘
┌─ outputs/pkgs/default.nix ─────────────────────────────────────────────────┐
│ diff --git a/outputs/pkgs/default.nix b/outputs/pkgs/default.nix │
│ index 887e4b8..bbf6c24 100644 │
│ --- a/outputs/pkgs/default.nix │
│ +++ b/outputs/pkgs/default.nix │
│ @@ -22,6 +22,7 @@ │
│ website = callPackage ./website {}; │
│ caddy-with-cloudflare = callPackage ./caddy-with-cloudflare {}; │
│ wii-u-gc-adapter = callPackage ./wii-u-gc-adapter {}; │
│ + ghostty-shaders = callPackage ./ghostty-shaders {}; │
│ ook-vim = callPackage ./ook-vim {inherit inputs pkgs lib hozen;}; │
│ │
│ inherit (projectPlus) fpp-config fpp-launcher fpp-sd; │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ outputs/pkgs/default.nix ───────────┐
│ diff --git a/outputs/pkgs/default.nix b/outp │
│ uts/pkgs/default.nix │
│ index 887e4b8..bbf6c24 100644 │
│ --- a/outputs/pkgs/default.nix │
│ +++ b/outputs/pkgs/default.nix │
│ @@ -22,6 +22,7 @@ │
│ website = callPackage ./website {}; │
│ caddy-with-cloudflare = callPackage . │
│ /caddy-with-cloudflare {}; │
│ wii-u-gc-adapter = callPackage ./wii- │
│ u-gc-adapter {}; │
│ + ghostty-shaders = callPackage ./ghost │
│ ty-shaders {}; │
│ ook-vim = callPackage ./ook-vim {inhe │
│ rit inputs pkgs lib hozen;}; │
│ │
│ inherit (projectPlus) fpp-config fpp- │
│ launcher fpp-sd; │
└──────────────────────────────────────────────┘
┌─ outputs/pkgs/ghostty-shaders/default.nix ─────────────────────────────────┐
│ diff --git a/outputs/pkgs/ghostty-shaders/default.nix b/outputs/pkgs/ghostty-shade │
│ rs/default.nix │
│ new file mode 100644 │
│ index 0000000..8bd111f │
│ --- /dev/null │
│ +++ b/outputs/pkgs/ghostty-shaders/default.nix │
│ @@ -0,0 +1,18 @@ │
│ +{ │
│ + fetchFromGitHub, │
│ + stdenvNoCC, │
│ + ... │
│ +}: │
│ +stdenvNoCC.mkDerivation { │
│ + name = "ghostty-shaders"; │
│ + src = fetchFromGitHub { │
│ + owner = "m-ahdal"; │
│ + repo = "ghostty-shaders"; │
│ + rev = "ec29c83d81ebe7e9ca9250b3c799a2d700c1cca8"; │
│ + sha256 = "sha256-8D0H13JzCTzgzjzjERQG8ruayeHn1CPcRsd+KtC6nj4="; │
│ + }; │
│ + installPhase = '' │
│ + mkdir -p $out │
│ + mv *.glsl $out │
│ + ''; │
│ +} │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...s/ghostty-shaders/default.nix ───┐
│ diff --git a/outputs/pkgs/ghostty-shaders/de │
│ fault.nix b/outputs/pkgs/ghostty-shaders/def │
│ ault.nix │
│ new file mode 100644 │
│ index 0000000..8bd111f │
│ --- /dev/null │
│ +++ b/outputs/pkgs/ghostty-shaders/default.n │
│ ix │
│ @@ -0,0 +1,18 @@ │
│ +{ │
│ + fetchFromGitHub, │
│ + stdenvNoCC, │
│ + ... │
│ +}: │
│ +stdenvNoCC.mkDerivation { │
│ + name = "ghostty-shaders"; │
│ + src = fetchFromGitHub { │
│ + owner = "m-ahdal"; │
│ + repo = "ghostty-shaders"; │
│ + rev = "ec29c83d81ebe7e9ca9250b3c799a2d7 │
│ 00c1cca8"; │
│ + sha256 = "sha256-8D0H13JzCTzgzjzjERQG8r │
│ uayeHn1CPcRsd+KtC6nj4="; │
│ + }; │
│ + installPhase = '' │
│ + mkdir -p $out │
│ + mv *.glsl $out │
│ + ''; │
│ +} │
└──────────────────────────────────────────────┘
[ BACK TO LOG ]
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET