diff --git a/flake.nix b/flake.nix index 390fbbb..a6ed04f 100644 --- a/flake.nix +++ b/flake.nix @@ -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; }; }); diff --git a/hosts/chris-pc/default.nix b/hosts/chris-pc/default.nix index 236a2d7..c392ced 100644 --- a/hosts/chris-pc/default.nix +++ b/hosts/chris-pc/default.nix @@ -48,8 +48,9 @@ }; terminal = { - default = "alacritty"; + default = "ghostty"; alacritty.enable = true; + ghostty.enable = true; }; editors = { diff --git a/modules/desktop/terminal/ghostty.nix b/modules/desktop/terminal/ghostty.nix new file mode 100644 index 0000000..436c6e7 --- /dev/null +++ b/modules/desktop/terminal/ghostty.nix @@ -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; + }; + }; + }; +}