Skip to content

Commit

Permalink
feat(nix): add ghostty
Browse files Browse the repository at this point in the history
  • Loading branch information
EdenEast committed Dec 29, 2024
1 parent 0398873 commit 7fd4aa9
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 32 deletions.
132 changes: 130 additions & 2 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 @@ -29,7 +29,7 @@
rust-overlay.url = "github:oxalica/rust-overlay";
rust-overlay.inputs.nixpkgs.follows = "nixpkgs";

ghostty-module.url = "github:clo4/ghostty-hm-module";
ghostty.url = "github:ghostty-org/ghostty";

# eww.url = "github:elkowar/eww";
};
Expand Down
30 changes: 1 addition & 29 deletions home/modules/app/ghostty/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,11 @@ let
cfg = config.nyx.modules.app.ghostty;
in
{
imports = [ inputs.ghostty-module.homeModules.default ];

options.nyx.modules.app.ghostty = {
enable = mkEnableOption "ghostty configuration";
# package = mkOption {
# description = "Package for alacritty";
# type = with types; nullOr package;
# default = pkgs.alacritty;
# };

fontSize = mkOption {
description = "Override font size";
type = types.int;
default = 12;
};
};

config = mkIf cfg.enable {
programs.ghostty = {
enable = true;
settings = {
config-file = [ (toString (./. + "/everfox.ghostty")) ];

title = "Ghostty 👻";

cursor-style-blink = false;
mouse-hide-while-typing = true;

font-size = cfg.fontSize;
font-family = "Gohu";

quit-after-last-window-closed = true;
};
};
home.packages = [ inputs.ghostty.packages."${pkgs.system}".default ];
};
}

0 comments on commit 7fd4aa9

Please sign in to comment.