diff --git a/flake.lock b/flake.lock index 704a365..9a4c4ac 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,21 @@ { "nodes": { + "flake-compat": { + "flake": false, + "locked": { + "lastModified": 1747046372, + "narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, "flake-parts": { "inputs": { "nixpkgs-lib": "nixpkgs-lib" @@ -18,6 +34,47 @@ "type": "github" } }, + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "ghostty": { + "inputs": { + "flake-compat": "flake-compat", + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs", + "zig": "zig", + "zon2nix": "zon2nix" + }, + "locked": { + "lastModified": 1751249038, + "narHash": "sha256-HNzb8n+qfek8/iX9gHdaDhzKKYkqBaK5FH0IT6MkaOo=", + "owner": "ghostty-org", + "repo": "ghostty", + "rev": "20c6a6fcf2a1dc72d6a60ad2f6e58cba14e4fb2f", + "type": "github" + }, + "original": { + "owner": "ghostty-org", + "repo": "ghostty", + "rev": "20c6a6fcf2a1dc72d6a60ad2f6e58cba14e4fb2f", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -78,18 +135,15 @@ }, "nixpkgs": { "locked": { - "lastModified": 1751211869, - "narHash": "sha256-1Cu92i1KSPbhPCKxoiVG5qnoRiKTgR5CcGSRyLpOd7Y=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "b43c397f6c213918d6cfe6e3550abfe79b5d1c51", - "type": "github" + "lastModified": 1748189127, + "narHash": "sha256-zRDR+EbbeObu4V2X5QCd2Bk5eltfDlCr5yvhBwUT6pY=", + "rev": "7c43f080a7f28b2774f3b3f43234ca11661bf334", + "type": "tarball", + "url": "https://releases.nixos.org/nixos/25.05/nixos-25.05.802491.7c43f080a7f2/nixexprs.tar.xz" }, "original": { - "owner": "NixOS", - "ref": "nixos-25.05", - "repo": "nixpkgs", - "type": "github" + "type": "tarball", + "url": "https://channels.nixos.org/nixos-25.05/nixexprs.tar.xz" } }, "nixpkgs-lib": { @@ -107,12 +161,29 @@ "type": "github" } }, + "nixpkgs_2": { + "locked": { + "lastModified": 1751211869, + "narHash": "sha256-1Cu92i1KSPbhPCKxoiVG5qnoRiKTgR5CcGSRyLpOd7Y=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "b43c397f6c213918d6cfe6e3550abfe79b5d1c51", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-25.05", + "repo": "nixpkgs", + "type": "github" + } + }, "root": { "inputs": { + "ghostty": "ghostty", "home-manager": "home-manager", "i3-dotfiles": "i3-dotfiles", "nix-gaming": "nix-gaming", - "nixpkgs": "nixpkgs", + "nixpkgs": "nixpkgs_2", "rpcs3_latest": "rpcs3_latest", "unstable": "unstable" } @@ -133,6 +204,21 @@ "type": "github" } }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "unstable": { "locked": { "lastModified": 1751285371, @@ -148,6 +234,60 @@ "repo": "nixpkgs", "type": "github" } + }, + "zig": { + "inputs": { + "flake-compat": [ + "ghostty" + ], + "flake-utils": [ + "ghostty", + "flake-utils" + ], + "nixpkgs": [ + "ghostty", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1748261582, + "narHash": "sha256-3i0IL3s18hdDlbsf0/E+5kyPRkZwGPbSFngq5eToiAA=", + "owner": "mitchellh", + "repo": "zig-overlay", + "rev": "aafb1b093fb838f7a02613b719e85ec912914221", + "type": "github" + }, + "original": { + "owner": "mitchellh", + "repo": "zig-overlay", + "type": "github" + } + }, + "zon2nix": { + "inputs": { + "flake-utils": [ + "ghostty", + "flake-utils" + ], + "nixpkgs": [ + "ghostty", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1742104771, + "narHash": "sha256-LhidlyEA9MP8jGe1rEnyjGFCzLLgCdDpYeWggibayr0=", + "owner": "jcollie", + "repo": "zon2nix", + "rev": "56c159be489cc6c0e73c3930bd908ddc6fe89613", + "type": "github" + }, + "original": { + "owner": "jcollie", + "ref": "56c159be489cc6c0e73c3930bd908ddc6fe89613", + "repo": "zon2nix", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 34ee8ea..5119186 100644 --- a/flake.nix +++ b/flake.nix @@ -27,6 +27,10 @@ url = "git+ssh://git@github.com/alsaiduq-lab/i3-dotfiles"; flake = false; }; + # see: https://github.com/ghostty-org/ghostty/commit/20c6a6fcf2a1dc72d6a60ad2f6e58cba14e4fb2f + ghostty = { + url = "github:ghostty-org/ghostty/20c6a6fcf2a1dc72d6a60ad2f6e58cba14e4fb2f"; + }; }; outputs = { @@ -67,10 +71,12 @@ hostPlatform = system; overlays = [ (final: prev: {ollama = unstablePkgs.ollama;}) + (final: prev: { + ghostty = inputs.ghostty.packages.${system}.default; + }) (final: prev: { inherit (customPkgs) - fish-rust pugixml SDL3 rpcs3_latest diff --git a/home-manager/modules/ghostty.nix b/home-manager/modules/ghostty.nix index a9b6e13..6526f6d 100644 --- a/home-manager/modules/ghostty.nix +++ b/home-manager/modules/ghostty.nix @@ -1,32 +1,10 @@ {pkgs, ...}: { home.packages = with pkgs; [ - ghostty fastfetch ]; programs.ghostty = { enable = true; enableFishIntegration = true; - - settings = { - command = "${pkgs.fish}/bin/fish --login --interactive"; - font-family = "0xProto Nerd Font"; - font-size = 12; - theme = "tokyonight-storm"; - window-padding-x = 10; - window-padding-y = 10; - cursor-color = "#7AA2F7"; - cursor-style = "block"; - cursor-style-blink = true; - window-decoration = "none"; - window-theme = "dark"; - selection-background = "#364A82"; - selection-foreground = "#C0CAF5"; - - keybind = [ - "super+t=new_tab" - "super+w=close_surface" - ]; - }; }; } diff --git a/pkgs/rpcs3/default.nix b/pkgs/rpcs3/default.nix index 0c4bca7..56b7388 100644 --- a/pkgs/rpcs3/default.nix +++ b/pkgs/rpcs3/default.nix @@ -37,7 +37,7 @@ src = pkgs.fetchgit { url = "https://github.com/RPCS3/rpcs3.git"; rev = rpcs3_latest.rev; - sha256 = "sha256-B73c2lG7FLZjrJvbNzEcZeQN7TWFyqrKjF+ajiGkpA4="; + sha256 = "sha256-L5zePjwSvAIsZhYfJgO3FKdafSRPAXPPgZTjFm7ZuOo="; fetchSubmodules = true; }; patches = [];