nix/home/ghostty/default.nix
2025-11-20 00:40:44 -06:00

27 lines
494 B
Nix

{
config,
pkgs,
inputs,
lib,
system-font,
dots,
...
}:
{
options.custom.gui = with lib; {
ghostty = {
enable = mkEnableOption "Enable ghostty";
};
};
config = lib.mkIf config.custom.gui.ghostty.enable {
home.packages = lib.mkIf pkgs.stdenv.isLinux (
with pkgs;
[
inputs.ghostty.packages."${system}".default
]
);
xdg.configFile."ghostty".source = config.lib.file.mkOutOfStoreSymlink "${dots}/home/ghostty/config";
};
}