Test ghostty

This commit is contained in:
Oliver Davies 2024-12-31 01:12:57 +00:00
parent 0dde56cd3f
commit e12da9e59b
6 changed files with 58 additions and 2 deletions
nix/modules/home-manager/features/desktop

View file

@ -5,6 +5,7 @@
./discord.nix
./espanso.nix
./flameshot.nix
./ghostty.nix
./gtk.nix
./media
./slack.nix

View file

@ -0,0 +1,36 @@
{
config,
inputs,
lib,
system,
...
}:
with lib;
let
cfg = config.features.desktop.ghostty;
pkgs-master = inputs.nixpkgs-master.legacyPackages.${system};
in
{
options.features.desktop.ghostty.enable = mkEnableOption "Enable ghostty";
config = mkIf cfg.enable {
home.packages = [ pkgs-master.ghostty ];
xdg.configFile."ghostty/config".text = ''
background = #000000
# Disable ligatures.
font-feature = -calt
font-feature = -liga
font-feature = -dlig
window-decoration = false
window-padding-x = 10
window-padding-y = 10
'';
};
}