mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-08 05:49:25 -06:00
chore: init
This commit is contained in:
commit
1b2c1ea359
891 changed files with 37053 additions and 0 deletions
20
modules/home/gui/apps/emulators/ghostty/config/settings.nix
Executable file
20
modules/home/gui/apps/emulators/ghostty/config/settings.nix
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
flake,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.aesthetics.themes) fonts;
|
||||
in
|
||||
{
|
||||
confirm-close-surface = false;
|
||||
window-decoration = true;
|
||||
font-size = fonts.sizes.terminal;
|
||||
font-family = fonts.name;
|
||||
window-padding-x = 10;
|
||||
window-padding-y = 10;
|
||||
copy-on-select = true;
|
||||
bold-is-bright = true;
|
||||
shell-integration = "detect";
|
||||
command = "${pkgs.nushell}/bin/nu";
|
||||
}
|
||||
43
modules/home/gui/apps/emulators/ghostty/config/themes.nix
Executable file
43
modules/home/gui/apps/emulators/ghostty/config/themes.nix
Executable file
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
flake,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.aesthetics.themes) currentTheme palettes;
|
||||
|
||||
inherit (flake.config.people) user0;
|
||||
|
||||
user = config.home.username;
|
||||
|
||||
themeLogic = if user == user0 then currentTheme else currentTheme;
|
||||
|
||||
el = palettes.${themeLogic}.colours;
|
||||
in
|
||||
{
|
||||
theme = {
|
||||
background = el.base01;
|
||||
cursor-color = el.base06;
|
||||
foreground = el.base05;
|
||||
palette = [
|
||||
"0=${el.base03}"
|
||||
"1=${el.base08}"
|
||||
"2=${el.base0B}"
|
||||
"3=${el.base0A}"
|
||||
"4=${el.base0D}"
|
||||
"5=${el.base17}"
|
||||
"6=${el.base0C}"
|
||||
"7=${el.base05}"
|
||||
"8=${el.base04}"
|
||||
"9=${el.base08}"
|
||||
"10=${el.base03}"
|
||||
"11=${el.base0A}"
|
||||
"12=${el.base0D}"
|
||||
"13=${el.base17}"
|
||||
"14=${el.base0C}"
|
||||
"15=${el.base05}"
|
||||
];
|
||||
selection-background = el.base04;
|
||||
selection-foreground = el.base05;
|
||||
};
|
||||
}
|
||||
27
modules/home/gui/apps/emulators/ghostty/default.nix
Executable file
27
modules/home/gui/apps/emulators/ghostty/default.nix
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
config,
|
||||
flake,
|
||||
pkgs,
|
||||
osConfig,
|
||||
...
|
||||
}:
|
||||
let
|
||||
configPath = ./config;
|
||||
settingsPath = import (configPath + /settings.nix) {
|
||||
inherit
|
||||
flake
|
||||
config
|
||||
osConfig
|
||||
pkgs
|
||||
;
|
||||
};
|
||||
themesPath = import (configPath + /themes.nix) { inherit config flake; };
|
||||
in
|
||||
{
|
||||
programs.ghostty = {
|
||||
enable = true;
|
||||
# package = flake.inputs.ghostty.packages.${pkgs.system}.default;
|
||||
settings = settingsPath;
|
||||
themes = themesPath;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue