add ghostty
This commit is contained in:
parent
1362d6d3c6
commit
c408aea5b8
3 changed files with 38 additions and 3 deletions
|
@ -39,7 +39,7 @@
|
||||||
outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, ... }:
|
outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib.my) mapModules mapModulesRec mapHosts;
|
inherit (lib.my) mapModules mapModulesRec mapHosts;
|
||||||
|
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
mkPkgs = pkgs: extraOverlays:
|
mkPkgs = pkgs: extraOverlays:
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
lib = nixpkgs.lib.extend (final: prev: {
|
lib = nixpkgs.lib.extend (final: prev: {
|
||||||
my = import ./lib {
|
my = import ./lib {
|
||||||
inherit pkgs inputs;
|
inherit pkgs inputs;
|
||||||
|
|
||||||
lib = final;
|
lib = final;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -48,8 +48,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
terminal = {
|
terminal = {
|
||||||
default = "alacritty";
|
default = "ghostty";
|
||||||
alacritty.enable = true;
|
alacritty.enable = true;
|
||||||
|
ghostty.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
editors = {
|
editors = {
|
||||||
|
|
34
modules/desktop/terminal/ghostty.nix
Normal file
34
modules/desktop/terminal/ghostty.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue