init: public
This commit is contained in:
20
modules/desktop/terminal/alacritty/default.nix
Normal file
20
modules/desktop/terminal/alacritty/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ config, lib, ... }:
|
||||
lib.my.makeHomeProgramConfig {
|
||||
inherit config;
|
||||
programName = "alacritty";
|
||||
optionPath = [
|
||||
"desktop"
|
||||
"terminal"
|
||||
"alacritty"
|
||||
];
|
||||
extraConfig = {
|
||||
my.home.programs.alacritty.settings = {
|
||||
general.import = [ ./tokyonight-storm.toml ];
|
||||
cursor.style = {
|
||||
shape = "Block";
|
||||
blinking = "Never";
|
||||
};
|
||||
font.size = 14;
|
||||
};
|
||||
};
|
||||
}
|
||||
49
modules/desktop/terminal/alacritty/tokyonight-storm.toml
Normal file
49
modules/desktop/terminal/alacritty/tokyonight-storm.toml
Normal file
@@ -0,0 +1,49 @@
|
||||
# -----------------------------------------------------------------------------
|
||||
# TokyoNight Alacritty Colors
|
||||
# Theme: Tokyo Night Storm
|
||||
# Upstream: https://github.com/folke/tokyonight.nvim/raw/main/extras/alacritty/tokyonight_storm.toml
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
# Default colors
|
||||
[colors.primary]
|
||||
background = '#24283b'
|
||||
foreground = '#c0caf5'
|
||||
|
||||
[colors.cursor]
|
||||
cursor = '#c0caf5'
|
||||
text = '#24283b'
|
||||
|
||||
[colors.selection]
|
||||
text = '#c0caf5'
|
||||
background = '#2e3c64'
|
||||
|
||||
# Normal colors
|
||||
[colors.normal]
|
||||
black = '#1d202f'
|
||||
red = '#f7768e'
|
||||
green = '#9ece6a'
|
||||
yellow = '#e0af68'
|
||||
blue = '#7aa2f7'
|
||||
magenta = '#bb9af7'
|
||||
cyan = '#7dcfff'
|
||||
white = '#a9b1d6'
|
||||
|
||||
# Bright colors
|
||||
[colors.bright]
|
||||
black = '#414868'
|
||||
red = '#ff899d'
|
||||
green = '#9fe044'
|
||||
yellow = '#faba4a'
|
||||
blue = '#8db0ff'
|
||||
magenta = '#c7a9ff'
|
||||
cyan = '#a4daff'
|
||||
white = '#c0caf5'
|
||||
|
||||
# Indexed Colors
|
||||
[[colors.indexed_colors]]
|
||||
index = 16
|
||||
color = '#ff9e64'
|
||||
|
||||
[[colors.indexed_colors]]
|
||||
index = 17
|
||||
color = '#db4b4b'
|
||||
18
modules/desktop/terminal/all.nix
Normal file
18
modules/desktop/terminal/all.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ config, lib, ... }:
|
||||
lib.my.makeSwitch {
|
||||
inherit config;
|
||||
optionName = "all terminals";
|
||||
optionPath = [
|
||||
"desktop"
|
||||
"terminal"
|
||||
"all"
|
||||
];
|
||||
config' = {
|
||||
my.desktop.terminal = {
|
||||
alacritty.enable = true;
|
||||
foot.enable = true;
|
||||
kitty.enable = true;
|
||||
ghostty.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
10
modules/desktop/terminal/default.nix
Normal file
10
modules/desktop/terminal/default.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./all.nix
|
||||
./alacritty
|
||||
./foot
|
||||
./kitty
|
||||
./ghostty
|
||||
];
|
||||
}
|
||||
41
modules/desktop/terminal/foot/default.nix
Normal file
41
modules/desktop/terminal/foot/default.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{ config, lib, ... }:
|
||||
lib.my.makeHomeProgramConfig {
|
||||
inherit config;
|
||||
programName = "foot";
|
||||
optionPath = [
|
||||
"desktop"
|
||||
"terminal"
|
||||
"foot"
|
||||
];
|
||||
extraConfig = {
|
||||
my.home.programs.foot = {
|
||||
server.enable = true;
|
||||
settings = {
|
||||
main = {
|
||||
font = "monospace:size=14";
|
||||
initial-window-size-pixels = "800x600";
|
||||
};
|
||||
colors = {
|
||||
background = "24283b";
|
||||
foreground = "a9b1d6";
|
||||
regular0 = "32344a";
|
||||
regular1 = "f7768e";
|
||||
regular2 = "9ece6a";
|
||||
regular3 = "e0af68";
|
||||
regular4 = "7aa2f7";
|
||||
regular5 = "ad8ee6";
|
||||
regular6 = "449dab";
|
||||
regular7 = "9699a8";
|
||||
bright0 = "444b6a";
|
||||
bright1 = "ff7a93";
|
||||
bright2 = "b9f27c";
|
||||
bright3 = "ff9e64";
|
||||
bright4 = "7da6ff";
|
||||
bright5 = "bb9af7";
|
||||
bright6 = "0db9d7";
|
||||
bright7 = "acb0d0";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
21
modules/desktop/terminal/ghostty/default.nix
Normal file
21
modules/desktop/terminal/ghostty/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ config, lib, ... }:
|
||||
lib.my.makeHomeProgramConfig {
|
||||
inherit config;
|
||||
programName = "ghostty";
|
||||
optionPath = [
|
||||
"desktop"
|
||||
"terminal"
|
||||
"ghostty"
|
||||
];
|
||||
extraConfig = {
|
||||
my.home.programs.ghostty = {
|
||||
enableBashIntegration = true;
|
||||
enableZshIntegration = true;
|
||||
installBatSyntax = true;
|
||||
settings = {
|
||||
font-size = 14;
|
||||
theme = "${./tokyonight-storm}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
22
modules/desktop/terminal/ghostty/tokyonight-storm
Normal file
22
modules/desktop/terminal/ghostty/tokyonight-storm
Normal file
@@ -0,0 +1,22 @@
|
||||
palette = 0=#1d202f
|
||||
palette = 1=#f7768e
|
||||
palette = 2=#9ece6a
|
||||
palette = 3=#e0af68
|
||||
palette = 4=#7aa2f7
|
||||
palette = 5=#bb9af7
|
||||
palette = 6=#7dcfff
|
||||
palette = 7=#a9b1d6
|
||||
palette = 8=#414868
|
||||
palette = 9=#ff899d
|
||||
palette = 10=#9fe044
|
||||
palette = 11=#faba4a
|
||||
palette = 12=#8db0ff
|
||||
palette = 13=#c7a9ff
|
||||
palette = 14=#a4daff
|
||||
palette = 15=#c0caf5
|
||||
|
||||
background = #24283b
|
||||
foreground = #c0caf5
|
||||
cursor-color = #c0caf5
|
||||
selection-background = #2e3c64
|
||||
selection-foreground = #c0caf5
|
||||
29
modules/desktop/terminal/kitty/default.nix
Normal file
29
modules/desktop/terminal/kitty/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ config, lib, ... }:
|
||||
lib.my.makeHomeProgramConfig {
|
||||
inherit config;
|
||||
programName = "kitty";
|
||||
optionPath = [
|
||||
"desktop"
|
||||
"terminal"
|
||||
"kitty"
|
||||
];
|
||||
extraConfig = {
|
||||
my.home.programs.kitty = {
|
||||
settings = {
|
||||
cursor_blink_interval = 0;
|
||||
remember_window_size = "no";
|
||||
initial_window_width = 800;
|
||||
initial_window_height = 600;
|
||||
enable_audio_bell = "no";
|
||||
term = "xterm-256color";
|
||||
};
|
||||
font = {
|
||||
name = "monospace";
|
||||
size = 14;
|
||||
};
|
||||
extraConfig = ''
|
||||
include ${./tokyonight-storm.conf}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
50
modules/desktop/terminal/kitty/tokyonight-storm.conf
Normal file
50
modules/desktop/terminal/kitty/tokyonight-storm.conf
Normal file
@@ -0,0 +1,50 @@
|
||||
# vim:ft=kitty
|
||||
|
||||
## name: Tokyo Night Storm
|
||||
## license: MIT
|
||||
## author: Folke Lemaitre
|
||||
## upstream: https://github.com/folke/tokyonight.nvim/raw/main/extras/kitty/tokyonight_storm.conf
|
||||
|
||||
|
||||
background #24283b
|
||||
foreground #c0caf5
|
||||
selection_background #2e3c64
|
||||
selection_foreground #c0caf5
|
||||
url_color #73daca
|
||||
cursor #c0caf5
|
||||
cursor_text_color #24283b
|
||||
|
||||
# Tabs
|
||||
active_tab_background #7aa2f7
|
||||
active_tab_foreground #1f2335
|
||||
inactive_tab_background #292e42
|
||||
inactive_tab_foreground #545c7e
|
||||
#tab_bar_background #1d202f
|
||||
|
||||
# Windows
|
||||
active_border_color #7aa2f7
|
||||
inactive_border_color #292e42
|
||||
|
||||
# normal
|
||||
color0 #1d202f
|
||||
color1 #f7768e
|
||||
color2 #9ece6a
|
||||
color3 #e0af68
|
||||
color4 #7aa2f7
|
||||
color5 #bb9af7
|
||||
color6 #7dcfff
|
||||
color7 #a9b1d6
|
||||
|
||||
# bright
|
||||
color8 #414868
|
||||
color9 #ff899d
|
||||
color10 #9fe044
|
||||
color11 #faba4a
|
||||
color12 #8db0ff
|
||||
color13 #c7a9ff
|
||||
color14 #a4daff
|
||||
color15 #c0caf5
|
||||
|
||||
# extended colors
|
||||
color16 #ff9e64
|
||||
color17 #db4b4b
|
||||
Reference in New Issue
Block a user