add ghostty

This commit is contained in:
Chris Kruining 2025-03-04 23:47:10 +01:00
parent 1362d6d3c6
commit c408aea5b8
3 changed files with 38 additions and 3 deletions

View file

@ -39,7 +39,7 @@
outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, ... }:
let
inherit (lib.my) mapModules mapModulesRec mapHosts;
system = "x86_64-linux";
mkPkgs = pkgs: extraOverlays:
@ -58,7 +58,7 @@
lib = nixpkgs.lib.extend (final: prev: {
my = import ./lib {
inherit pkgs inputs;
lib = final;
};
});

View file

@ -48,8 +48,9 @@
};
terminal = {
default = "alacritty";
default = "ghostty";
alacritty.enable = true;
ghostty.enable = true;
};
editors = {

View file

@ -0,0 +1,34 @@
{
config,
options,
lib,
pkgs,
...
}: let
inherit (builtins) toString;
inherit (lib.meta) getExe;
inherit (lib.modules) mkIf mkMerge;
in {
options.modules.desktop.terminal.ghostty = let
inherit (lib.options) mkEnableOption;
in { enable = mkEnableOption "ghostty"; };
config = mkIf config.modules.desktop.terminal.ghostty.enable {
environment.systemPackages = [
pkgs.ghostty
];
modules.shell.toolset.tmux.enable = true;
hm.programs.ghostty = {
enable = true;
settings = {
background-blur-radius = 20;
theme = "dark:everforest,light:everforest";
window-theme = "dark";
background-opacity = 0.8;
minimum-contrast = 1.1;
};
};
};
}