Test ghostty
This commit is contained in:
parent
0dde56cd3f
commit
e12da9e59b
6 changed files with 58 additions and 2 deletions
nix/modules/home-manager/features/desktop
|
@ -5,6 +5,7 @@
|
|||
./discord.nix
|
||||
./espanso.nix
|
||||
./flameshot.nix
|
||||
./ghostty.nix
|
||||
./gtk.nix
|
||||
./media
|
||||
./slack.nix
|
||||
|
|
36
nix/modules/home-manager/features/desktop/ghostty.nix
Normal file
36
nix/modules/home-manager/features/desktop/ghostty.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue