ghostty
This commit is contained in:
parent
f425ff9a43
commit
f9cccfdd3c
|
|
@ -1,6 +1,7 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./alacritty.nix
|
||||
./ghostty.nix
|
||||
./common.nix
|
||||
./desktop-apps.nix
|
||||
./development
|
||||
|
|
|
|||
29
home/ghostty.nix
Normal file
29
home/ghostty.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{lib, super-config, ...}:
|
||||
let
|
||||
# theme = import ../data/theme.nix {config = super-config; };
|
||||
mkIfOrElse = cond: then_: else_: (lib.mkMerge [
|
||||
(lib.mkIf cond then_)
|
||||
(lib.mkIf (!cond) else_)
|
||||
]);
|
||||
in {
|
||||
programs.ghostty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font-family = "monospace";
|
||||
font-size = 12;
|
||||
title-report = true;
|
||||
shell-integration = "zsh";
|
||||
shell-integration-features = "no-cursor";
|
||||
theme = "dark: Gruvbox Dark, light: Gruvbox Light";
|
||||
window-theme = mkIfOrElse (super-config.darkMode == true) "dark" "light";
|
||||
|
||||
cursor-style = "block";
|
||||
cursor-style-blink = false;
|
||||
cursor-opacity = 0.8;
|
||||
|
||||
keybind = [
|
||||
"ctrl+shift+enter=new_window"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -2,6 +2,7 @@
|
|||
imports = [
|
||||
./boot.nix
|
||||
./core.nix
|
||||
./xdg.nix
|
||||
./fonts.nix
|
||||
./hardware.nix
|
||||
./networking.nix
|
||||
|
|
|
|||
14
system/xdg.nix
Normal file
14
system/xdg.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{pkgs, ...}: {
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
wlr.enable = true;
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal
|
||||
xdg-desktop-portal-wlr
|
||||
xdg-desktop-portal-gtk
|
||||
xdg-desktop-portal-xapp
|
||||
];
|
||||
|
||||
config.common.default = "*";
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue