Parametrize ghostty.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
47677a13d1
commit
808efee1c2
2 changed files with 17 additions and 5 deletions
|
|
@ -1,20 +1,29 @@
|
||||||
{ ... }: {
|
{ lib, config, ... }: {
|
||||||
home.file.".config/ghostty/config" = {
|
options.ghostty.font-size = lib.mkOption {
|
||||||
|
# Using a string to support floats.
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "12"; # Set your default integer value here
|
||||||
|
description = "Font size to be used within ghostty";
|
||||||
|
};
|
||||||
|
|
||||||
|
options.ghostty.window-decoration = lib.mkEnableOption "window-decoration";
|
||||||
|
|
||||||
|
config.home.file.".config/ghostty/config" = {
|
||||||
text = ''
|
text = ''
|
||||||
# If not preset, this causes issues when sshing into linux servers.
|
# If not preset, this causes issues when sshing into linux servers.
|
||||||
term = xterm-256color
|
term = xterm-256color
|
||||||
font-family = "BigBlueTermPlus Nerd Font"
|
font-family = "BigBlueTermPlus Nerd Font"
|
||||||
font-size = 17.2
|
font-size = ${config.ghostty.font-size}
|
||||||
theme = "PaleNight"
|
theme = "PaleNight"
|
||||||
background-opacity = 0.9
|
background-opacity = 0.9
|
||||||
window-decoration = false
|
window-decoration = ${if config.ghostty.window-decoration then "true" else "false" }
|
||||||
|
|
||||||
# This is the default to open the configuration
|
# This is the default to open the configuration
|
||||||
# I type this by accident way to frequently...
|
# I type this by accident way to frequently...
|
||||||
keybind = ctrl+comma=unbind
|
keybind = ctrl+comma=unbind
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
home.file.".config/ghostty/themes/PaleNight" = {
|
config.home.file.".config/ghostty/themes/PaleNight" = {
|
||||||
text = ''
|
text = ''
|
||||||
palette = 0=#000000
|
palette = 0=#000000
|
||||||
palette = 1=#ff5555
|
palette = 1=#ff5555
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,9 @@ in
|
||||||
inputs.walker.homeManagerModules.default
|
inputs.walker.homeManagerModules.default
|
||||||
];
|
];
|
||||||
|
|
||||||
|
ghostty.font-size = "14";
|
||||||
|
ghostty.window-decoration = false;
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
username = "jmug";
|
username = "jmug";
|
||||||
homeDirectory = "/home/jmug";
|
homeDirectory = "/home/jmug";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue