27 lines
494 B
Nix
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";
|
|
};
|
|
}
|