Skip to content

Commit

Permalink
chore: Move ghostty to nixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
coredev-uk committed Jan 2, 2025
1 parent 68982c8 commit 7fedfc6
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 149 deletions.
162 changes: 17 additions & 145 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
lanzaboote.url = "github:nix-community/lanzaboote";
lanzaboote.inputs.nixpkgs.follows = "unstable";

# TODO: Remove when https://github.com/NixOS/nixpkgs/pull/363992 is merged
zen-browser.url = "github:omarcresp/zen-browser-flake";
ghostty.url = "github:ghostty-org/ghostty";
};

outputs =
Expand Down
3 changes: 2 additions & 1 deletion home/common/desktop/i3/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
pkgs,
self,
hostname,
inputs,
...
}:
let
Expand All @@ -28,7 +29,7 @@ in

mod = "Mod4";
browser = "zen";
terminal = "alacritty";
terminal = "${pkgs.ghostty}/bin/ghostty";
menu = "rofi -show drun";
lock = "${pkgs.betterlockscreen}/bin/betterlockscreen -l dim";
in
Expand Down
12 changes: 11 additions & 1 deletion home/common/shell/ghostty.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
{ self, pkgs, ... }:
{
self,
pkgs,
...
}:
let
theme = import "${self}/lib/theme" { inherit pkgs; };
in
{
home.file.".config/ghostty/config".text = ''
theme = catppuccin-${theme.catppuccin.flavor}
font-family = "${theme.fonts.monospace.name}"
window-decoration = false
clipboard-paste-protection = false
'';

home.packages = with pkgs; [
ghostty
];
}
1 change: 0 additions & 1 deletion hosts/common/desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ in

environment.systemPackages = with pkgs; [
inputs.zen-browser.packages."${system}".default
inputs.ghostty.packages."${system}".ghostty
];

programs._1password = {
Expand Down

0 comments on commit 7fedfc6

Please sign in to comment.