nix/home/ghostty/default.nix
2025-11-27 12:19:47 -06:00

26 lines
474 B
Nix

{
config,
pkgs,
inputs,
lib,
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}/config/ghostty";
};
}