mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
refactor: cleaned up nixos and home dirs
This commit is contained in:
parent
824a91d405
commit
e596e1c1b3
582 changed files with 2 additions and 22 deletions
11
modules/home/gui/apps/code/cursor/default.nix
Executable file
11
modules/home/gui/apps/code/cursor/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
code-cursor
|
||||
;
|
||||
};
|
||||
}
|
10
modules/home/gui/apps/code/default.nix
Executable file
10
modules/home/gui/apps/code/default.nix
Executable file
|
@ -0,0 +1,10 @@
|
|||
let
|
||||
content = builtins.readDir ./.;
|
||||
|
||||
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
|
||||
|
||||
importList = map (name: ./. + "/${name}") dirContent;
|
||||
in
|
||||
{
|
||||
imports = importList;
|
||||
}
|
18
modules/home/gui/apps/code/vsCode/config/extensions.nix
Executable file
18
modules/home/gui/apps/code/vsCode/config/extensions.nix
Executable file
|
@ -0,0 +1,18 @@
|
|||
{ pkgs, ... }:
|
||||
with pkgs.vscode-extensions;
|
||||
[
|
||||
catppuccin.catppuccin-vsc
|
||||
eamodio.gitlens
|
||||
elmtooling.elm-ls-vscode
|
||||
esbenp.prettier-vscode
|
||||
haskell.haskell
|
||||
james-yu.latex-workshop
|
||||
bbenoist.nix
|
||||
# jnoortheen.nix-ide
|
||||
mattn.lisp
|
||||
mkhl.direnv
|
||||
pkief.material-icon-theme
|
||||
streetsidesoftware.code-spell-checker
|
||||
tamasfe.even-better-toml
|
||||
brettm12345.nixfmt-vscode
|
||||
]
|
27
modules/home/gui/apps/code/vsCode/config/keybindings.nix
Executable file
27
modules/home/gui/apps/code/vsCode/config/keybindings.nix
Executable file
|
@ -0,0 +1,27 @@
|
|||
[
|
||||
{
|
||||
key = "ctrl+shift+s";
|
||||
command = "editor.action.insertCursorAtEndOfEachLineSelected";
|
||||
when = "textInputFocus";
|
||||
}
|
||||
{
|
||||
key = "ctrl+shift+a";
|
||||
command = "editor.action.quickFix";
|
||||
when = "editorHasCodeActionsProvider && textInputFocus && !editorReadonly";
|
||||
}
|
||||
{
|
||||
key = "ctrl+shift+f";
|
||||
command = "editor.action.formatDocument";
|
||||
when = "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor";
|
||||
}
|
||||
{
|
||||
key = "ctrl+shift+tab";
|
||||
command = "editor.action.indentationToSpaces";
|
||||
when = "textInputFocus";
|
||||
}
|
||||
{
|
||||
key = "ctrl+shift+d";
|
||||
command = "editor.action.deleteLines";
|
||||
when = "textInputFocus";
|
||||
}
|
||||
]
|
35
modules/home/gui/apps/code/vsCode/config/userSettings.nix
Executable file
35
modules/home/gui/apps/code/vsCode/config/userSettings.nix
Executable file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.aesthetics.themes)
|
||||
fonts
|
||||
;
|
||||
in
|
||||
{
|
||||
"git.confirmSync" = false;
|
||||
"editor.insertSpaces" = false;
|
||||
"files.autoSave" = "afterDelay";
|
||||
"git.enableSmartCommit" = true;
|
||||
"nix.enableLanguageServer" = true;
|
||||
"nix.serverPath" = lib.getExe pkgs.nil;
|
||||
"nix.formatterPath" = lib.getExe pkgs.haskellPackages.nixfmt;
|
||||
"window.menuBarVisibility" = "toggle";
|
||||
"workbench.iconTheme" = "material-icon-theme";
|
||||
"workbench.startupEditor" = "none";
|
||||
"workbench.colorTheme" = "Catppuccin Macchiato";
|
||||
"workbench.statusBar.visible" = false;
|
||||
"editor.multiCursorLimit" = 700000;
|
||||
"editor.wordWrap" = "on";
|
||||
"editor.fontSize" = fonts.sizes.applications.size0;
|
||||
"editor.fontFamily" = "'${fonts.names.name0}', 'monospace', monospace";
|
||||
"terminal.integrated.fontSize" = fonts.sizes.applications.size0;
|
||||
"terminal.integrated.fontFamily" = "'${fonts.names.name0}', 'monospace', monospace";
|
||||
"editor.fontLigatures" = true;
|
||||
"elmLS.disableElmLSDiagnostics" = true;
|
||||
"elmLS.elmReviewDiagnostics" = "warning";
|
||||
"elmLS.elmReviewPath" = "/etc/profiles/per-user/nick/bin/elm-review";
|
||||
}
|
34
modules/home/gui/apps/code/vsCode/default.nix
Executable file
34
modules/home/gui/apps/code/vsCode/default.nix
Executable file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs = {
|
||||
vscode =
|
||||
let
|
||||
configPath = ./config;
|
||||
keybindingsPath = import (configPath + /keybindings.nix);
|
||||
extensionsPath = import (configPath + /extensions.nix) {
|
||||
inherit
|
||||
pkgs
|
||||
;
|
||||
};
|
||||
userSettingsPath = import (configPath + /userSettings.nix) {
|
||||
inherit
|
||||
pkgs
|
||||
lib
|
||||
flake
|
||||
;
|
||||
};
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
package = pkgs.vscode;
|
||||
keybindings = keybindingsPath;
|
||||
extensions = extensionsPath;
|
||||
userSettings = userSettingsPath;
|
||||
};
|
||||
};
|
||||
}
|
18
modules/home/gui/apps/code/zed/config/extensions/default.nix
Executable file
18
modules/home/gui/apps/code/zed/config/extensions/default.nix
Executable file
|
@ -0,0 +1,18 @@
|
|||
[
|
||||
"catppuccin"
|
||||
"catppuccin-blur"
|
||||
"cargo-appraiser"
|
||||
"cargo-tom"
|
||||
"markdown-oxide"
|
||||
"material-dark"
|
||||
"rose-pine-theme"
|
||||
"material-theme"
|
||||
"just"
|
||||
"elm"
|
||||
"haskell"
|
||||
"nix"
|
||||
"typst"
|
||||
"nu"
|
||||
"toml"
|
||||
"xml"
|
||||
]
|
10
modules/home/gui/apps/code/zed/config/extraPackages/default.nix
Executable file
10
modules/home/gui/apps/code/zed/config/extraPackages/default.nix
Executable file
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, ... }:
|
||||
builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
nil
|
||||
nixfmt-rfc-style
|
||||
nixd
|
||||
wl-clipboard-rs
|
||||
xsel
|
||||
;
|
||||
}
|
25
modules/home/gui/apps/code/zed/config/userKeymaps/default.nix
Executable file
25
modules/home/gui/apps/code/zed/config/userKeymaps/default.nix
Executable file
|
@ -0,0 +1,25 @@
|
|||
[
|
||||
{
|
||||
context = "Editor";
|
||||
bindings = {
|
||||
"ctrl-shift-d" = "editor::DeleteLine";
|
||||
"ctrl-shift-f" = "editor::Format";
|
||||
"ctrl-shift-c" = "editor::ToggleComments";
|
||||
"ctrl-shift-w" = "editor::AddSelectionAbove";
|
||||
"ctrl-shift-s" = "editor::AddSelectionBelow";
|
||||
};
|
||||
}
|
||||
{
|
||||
context = "Pane";
|
||||
bindings = {
|
||||
"alt-w" = "editor::MoveLineUp";
|
||||
"alt-s" = "editor::MoveLineDown";
|
||||
};
|
||||
}
|
||||
# {
|
||||
# bindings = {
|
||||
# context = "Workspace";
|
||||
# "ctrl-s" = "workspace::SaveAll";
|
||||
# };
|
||||
# }
|
||||
]
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.services.instances)
|
||||
ollama
|
||||
web
|
||||
;
|
||||
service = ollama;
|
||||
localhost = web.localhost.address0;
|
||||
in
|
||||
{
|
||||
assistant = {
|
||||
enabled = true;
|
||||
default_model = {
|
||||
provider = "zed.dev";
|
||||
model = "claude-3-5-sonnet-latest";
|
||||
};
|
||||
version = "2";
|
||||
};
|
||||
assistant1 = {
|
||||
enabled = true;
|
||||
default_model = {
|
||||
provider = "ollama";
|
||||
model = "qwen2.5-coder:7b";
|
||||
};
|
||||
version = "2";
|
||||
};
|
||||
language_models = {
|
||||
ollama = {
|
||||
api_url = "http://${localhost}:${builtins.toString service.ports.port1}";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
enabled = true;
|
||||
autoFetch = true;
|
||||
autoFetchInterval = 300;
|
||||
git_status = true;
|
||||
git_gutter = "tracked_files";
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
{ flake, ... }:
|
||||
let
|
||||
inherit (flake.config.aesthetics.themes)
|
||||
fonts
|
||||
;
|
||||
in
|
||||
{
|
||||
ui_font_family = fonts.names.name0;
|
||||
buffer_font_family = fonts.names.name0;
|
||||
hour_format = "hour12";
|
||||
vim_mode = false;
|
||||
show_whitespaces = "none";
|
||||
ui_font_size = fonts.sizes.applications.size0;
|
||||
buffer_font_size = fonts.sizes.applications.size0;
|
||||
tab_size = 2;
|
||||
cursor_blink = true;
|
||||
theme = "Catppuccin Macchiato";
|
||||
show_copilot_suggestions = true;
|
||||
bracket_pairing = "always";
|
||||
relative_line_numbers = true;
|
||||
tabs = {
|
||||
file_icons = true;
|
||||
git_status = true;
|
||||
};
|
||||
inlay_hints = {
|
||||
enabled = true;
|
||||
typeHints = true;
|
||||
parameterHints = true;
|
||||
chainingHints = true;
|
||||
};
|
||||
project_panel = {
|
||||
file_icons = true;
|
||||
folder_icons = true;
|
||||
indent_size = 15;
|
||||
auto_reveal_entries = false;
|
||||
auto_fold_dirs = false;
|
||||
};
|
||||
indent_guides = {
|
||||
enabled = true;
|
||||
};
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"Elixir" = {
|
||||
language_servers = [
|
||||
"!lexical"
|
||||
"elixir-ls"
|
||||
"!next-ls"
|
||||
];
|
||||
format_on_save = {
|
||||
external = {
|
||||
command = "mix";
|
||||
arguments = [
|
||||
"format"
|
||||
"--stdin-filename"
|
||||
"{buffer_path}"
|
||||
"-"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
"HEEX" = {
|
||||
language_servers = [
|
||||
"!lexical"
|
||||
"elixir-ls"
|
||||
"!next-ls"
|
||||
];
|
||||
format_on_save = {
|
||||
external = {
|
||||
command = "mix";
|
||||
arguments = [
|
||||
"format"
|
||||
"--stdin-filename"
|
||||
"{buffer_path}"
|
||||
"-"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
40
modules/home/gui/apps/code/zed/config/userSettings/config/lsp/default.nix
Executable file
40
modules/home/gui/apps/code/zed/config/userSettings/config/lsp/default.nix
Executable file
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
rust-analyzer = {
|
||||
binary = {
|
||||
path_lookup = true;
|
||||
};
|
||||
};
|
||||
|
||||
elm-language-server = {
|
||||
initialization_options = {
|
||||
disableElmLSDiagnostics = true;
|
||||
onlyUpdateDiagnosticsOnSave = false;
|
||||
elmReviewDiagnostics = "warning";
|
||||
};
|
||||
};
|
||||
|
||||
haskell = {
|
||||
path_lookup = true;
|
||||
};
|
||||
|
||||
nix = {
|
||||
binary = {
|
||||
path_lookup = true;
|
||||
};
|
||||
};
|
||||
|
||||
typst = {
|
||||
binary = {
|
||||
path_lookup = true;
|
||||
};
|
||||
};
|
||||
|
||||
elixir-ls = {
|
||||
binary = {
|
||||
path_lookup = true;
|
||||
};
|
||||
settings = {
|
||||
dialyzerEnabled = true;
|
||||
};
|
||||
};
|
||||
}
|
20
modules/home/gui/apps/code/zed/config/userSettings/config/misc/default.nix
Executable file
20
modules/home/gui/apps/code/zed/config/userSettings/config/misc/default.nix
Executable file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
node = {
|
||||
path = lib.getExe pkgs.nodejs;
|
||||
npm_path = lib.getExe' pkgs.nodejs "npm";
|
||||
};
|
||||
|
||||
soft_wrap = "editor_width";
|
||||
|
||||
auto_update = false;
|
||||
autosave = "on_focus_change";
|
||||
load_direnv = "shell_hook";
|
||||
base_keymap = "VSCode";
|
||||
restore_on_startup = "last_session";
|
||||
show_wrap_guides = true;
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
{ flake, ... }:
|
||||
let
|
||||
inherit (flake.config.aesthetics.themes)
|
||||
fonts
|
||||
;
|
||||
in
|
||||
{
|
||||
alternate_scroll = "off";
|
||||
blinking = "off";
|
||||
copy_on_select = true;
|
||||
dock = "bottom";
|
||||
detect_venv = {
|
||||
on = {
|
||||
directories = [
|
||||
".env"
|
||||
"env"
|
||||
".venv"
|
||||
"venv"
|
||||
];
|
||||
activate_script = "default";
|
||||
};
|
||||
};
|
||||
|
||||
env = {
|
||||
TERM = "ghostty";
|
||||
};
|
||||
|
||||
font_family = fonts.names.name0;
|
||||
font_features = null;
|
||||
font_size = fonts.sizes.terminal.size0;
|
||||
line_height = "comfortable";
|
||||
option_as_meta = false;
|
||||
button = false;
|
||||
shell = "system";
|
||||
toolbar = {
|
||||
title = false;
|
||||
};
|
||||
working_directory = "current_project_directory";
|
||||
}
|
816
modules/home/gui/apps/code/zed/config/userSettings/config/theme/default.nix
Executable file
816
modules/home/gui/apps/code/zed/config/userSettings/config/theme/default.nix
Executable file
|
@ -0,0 +1,816 @@
|
|||
{
|
||||
config,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.aesthetics.themes) currentTheme palettes;
|
||||
|
||||
inherit (flake.config.people) user0 user1 user2;
|
||||
|
||||
user = config.home.username;
|
||||
|
||||
themeLogic =
|
||||
if user == user0 then
|
||||
currentTheme.theme0
|
||||
else if user == user1 then
|
||||
currentTheme.theme1
|
||||
else if user == user2 then
|
||||
currentTheme.theme2
|
||||
else
|
||||
currentTheme.theme0;
|
||||
|
||||
el = palettes.${themeLogic}.colours;
|
||||
in
|
||||
{
|
||||
accents = [
|
||||
"${el.base0E}66"
|
||||
"${el.base07}66"
|
||||
"${el.base16}66"
|
||||
"${el.base0B}66"
|
||||
"${el.base0A}66"
|
||||
"${el.base09}66"
|
||||
"${el.base08}66"
|
||||
];
|
||||
|
||||
border = {
|
||||
value = "#${el.base02}";
|
||||
variant = "#${el.base0E}";
|
||||
focused = "#${el.base07}";
|
||||
selected = "#${el.base0E}";
|
||||
transparent = "#${el.base0B}";
|
||||
disabled = "#${el.base03}";
|
||||
};
|
||||
|
||||
elevated_surface.background = "#${el.base01}";
|
||||
surface.background = "#${el.base01}";
|
||||
background = {
|
||||
value = "#${el.base00}";
|
||||
appearance = "opaque";
|
||||
};
|
||||
element = {
|
||||
background = "#${el.base11}";
|
||||
hover = "#${el.base03}4d";
|
||||
active = "#${el.base04}4d";
|
||||
selected = "#${el.base02}4d";
|
||||
disabled = "#${el.base03}";
|
||||
};
|
||||
|
||||
drop_target.background = "#${el.base02}66";
|
||||
ghost_element = {
|
||||
background = "#${el.base11}59";
|
||||
hover = "#${el.base03}4d";
|
||||
active = "#${el.base04}99";
|
||||
selected = "#${el.base05}1a";
|
||||
disabled = "#${el.base03}";
|
||||
};
|
||||
|
||||
text = {
|
||||
value = "#${el.base05}";
|
||||
muted = "#${el.base05}";
|
||||
placeholder = "#${el.base04}";
|
||||
disabled = "#${el.base03}";
|
||||
accent = "#${el.base0E}";
|
||||
};
|
||||
|
||||
icon = {
|
||||
value = "#${el.base05}";
|
||||
muted = "#${el.base04}";
|
||||
disabled = "#${el.base03}";
|
||||
placeholder = "#${el.base04}";
|
||||
accent = "#${el.base0E}";
|
||||
};
|
||||
|
||||
status_bar.background = "#${el.base11}";
|
||||
title_bar = {
|
||||
background = "#${el.base11}";
|
||||
inactive_background = "#${el.base11}d9";
|
||||
};
|
||||
toolbar.background = "#${el.base00}";
|
||||
tab_bar.background = "#${el.base11}";
|
||||
tab = {
|
||||
inactive_background = "#${el.base11}";
|
||||
active_background = "#${el.base00}";
|
||||
};
|
||||
|
||||
search.match_background = "#${el.base0C}33";
|
||||
panel = {
|
||||
background = "#${el.base01}";
|
||||
focused_border = "#${el.base05}";
|
||||
indent_guide = "#${el.base02}99";
|
||||
indent_guide_active = "#${el.base04}";
|
||||
indent_guide_hover = "#${el.base0E}";
|
||||
};
|
||||
|
||||
pane.focused_border = "#${el.base05}";
|
||||
pane_group.border = "#${el.base02}";
|
||||
|
||||
scrollbar = {
|
||||
thumb = {
|
||||
background = "#${el.base0E}33";
|
||||
hover_background = "#${el.base03}";
|
||||
border = "#${el.base0E}";
|
||||
scrollbar.track.background = null;
|
||||
};
|
||||
track.border = "#${el.base05}12";
|
||||
};
|
||||
|
||||
editor = {
|
||||
foreground = "#${el.base05}";
|
||||
background = "#${el.base00}";
|
||||
gutter.background = "#${el.base00}";
|
||||
subheader.background = "#${el.base01}";
|
||||
active_line.background = "#${el.base05}0d";
|
||||
highlighted_line.background = null;
|
||||
line_number = "#${el.base04}";
|
||||
active_line_number = "#${el.base0E}";
|
||||
invisible = "#${el.base05}66";
|
||||
wrap_guide = "#${el.base04}";
|
||||
active_wrap_guide = "#${el.base04}";
|
||||
document_highlight = {
|
||||
bracket_background = "#${el.base06}40";
|
||||
read_background = "#${el.base05}29";
|
||||
write_background = "#${el.base05}29";
|
||||
};
|
||||
indent_guide = "#${el.base02}99";
|
||||
indent_guide_active = "#${el.base04}";
|
||||
};
|
||||
|
||||
terminal = {
|
||||
background = "#${el.base00}";
|
||||
ansi.background = "#${el.base00}";
|
||||
foreground = "#${el.base05}";
|
||||
dim_foreground = "#${el.base04}";
|
||||
bright_foreground = "#${el.base05}";
|
||||
};
|
||||
|
||||
link_text.hover = "#${el.base15}";
|
||||
|
||||
conflict = {
|
||||
value = "#${el.base0A}";
|
||||
border = "#${el.base0A}";
|
||||
background = "#${el.base01}";
|
||||
};
|
||||
|
||||
created = {
|
||||
value = "#${el.base0B}";
|
||||
border = "#${el.base0B}";
|
||||
background = "#${el.base01}";
|
||||
};
|
||||
|
||||
deleted = {
|
||||
value = "#${el.base08}";
|
||||
border = "#${el.base08}";
|
||||
background = "#${el.base01}";
|
||||
};
|
||||
|
||||
hidden = {
|
||||
value = "#${el.base03}";
|
||||
border = "#${el.base03}";
|
||||
background = "#${el.base01}";
|
||||
};
|
||||
|
||||
hint = {
|
||||
value = "#${el.base04}";
|
||||
border = "#${el.base04}";
|
||||
background = "#${el.base01}";
|
||||
};
|
||||
|
||||
ignored = {
|
||||
value = "#${el.base03}";
|
||||
border = "#${el.base03}";
|
||||
background = "#${el.base01}";
|
||||
};
|
||||
|
||||
modified = {
|
||||
value = "#${el.base0A}";
|
||||
border = "#${el.base0A}";
|
||||
background = "#${el.base01}";
|
||||
};
|
||||
|
||||
predictive = {
|
||||
value = "#${el.base03}";
|
||||
border = "#${el.base07}";
|
||||
background = "#${el.base01}";
|
||||
};
|
||||
|
||||
renamed = {
|
||||
value = "#${el.base16}";
|
||||
border = "#${el.base16}";
|
||||
background = "#${el.base01}";
|
||||
};
|
||||
|
||||
info = {
|
||||
value = "#${el.base0C}";
|
||||
border = "#${el.base0C}";
|
||||
background = "#${el.base05}33";
|
||||
};
|
||||
|
||||
warning = {
|
||||
value = "#${el.base0A}";
|
||||
border = "#${el.base0A}";
|
||||
background = "#${el.base0A}1f";
|
||||
};
|
||||
|
||||
error = {
|
||||
value = "#${el.base08}";
|
||||
border = "#${el.base08}";
|
||||
background = "#${el.base08}1f";
|
||||
};
|
||||
|
||||
success = {
|
||||
value = "#${el.base0B}";
|
||||
border = "#${el.base0B}";
|
||||
background = "#${el.base0B}1f";
|
||||
};
|
||||
|
||||
unreachable = {
|
||||
value = "#${el.base08}";
|
||||
border = "#${el.base08}";
|
||||
background = "#${el.base08}1f";
|
||||
};
|
||||
|
||||
players = [
|
||||
{
|
||||
cursor = "#${el.base06}";
|
||||
selection = "#${el.base04}80";
|
||||
background = "#${el.base06}";
|
||||
}
|
||||
{
|
||||
cursor = "#${el.base0E}";
|
||||
selection = "#${el.base0E}33";
|
||||
background = "#${el.base0E}";
|
||||
}
|
||||
{
|
||||
cursor = "#${el.base07}";
|
||||
selection = "#${el.base07}33";
|
||||
background = "#${el.base07}";
|
||||
}
|
||||
{
|
||||
cursor = "#${el.base16}";
|
||||
selection = "#${el.base16}33";
|
||||
background = "#${el.base16}";
|
||||
}
|
||||
{
|
||||
cursor = "#${el.base0B}";
|
||||
selection = "#${el.base0B}33";
|
||||
background = "#${el.base0B}";
|
||||
}
|
||||
{
|
||||
cursor = "#${el.base0A}";
|
||||
selection = "#${el.base0A}33";
|
||||
background = "#${el.base0A}";
|
||||
}
|
||||
{
|
||||
cursor = "#${el.base09}";
|
||||
selection = "#${el.base09}33";
|
||||
background = "#${el.base09}";
|
||||
}
|
||||
{
|
||||
cursor = "#${el.base08}";
|
||||
selection = "#${el.base08}33";
|
||||
background = "#${el.base08}";
|
||||
}
|
||||
];
|
||||
|
||||
syntax = {
|
||||
variable = {
|
||||
color = "#${el.base05}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
variable.builtin = {
|
||||
color = "#${el.base08}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
variable.parameter = {
|
||||
color = "#${el.base12}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
variable.member = {
|
||||
color = "#${el.base0D}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
variable.special = {
|
||||
color = "#${el.base17}";
|
||||
font_style = "italic";
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
constant = {
|
||||
color = "#${el.base09}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
constant.builtin = {
|
||||
color = "#${el.base09}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
constant.macro = {
|
||||
color = "#${el.base0E}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
module = {
|
||||
color = "#${el.base0A}";
|
||||
font_style = "italic";
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
label = {
|
||||
color = "#${el.base16}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
string = {
|
||||
color = "#${el.base0B}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
string.documentation = {
|
||||
color = "#${el.base0C}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
string.regexp = {
|
||||
color = "#${el.base09}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
string.escape = {
|
||||
color = "#${el.base17}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
string.special = {
|
||||
color = "#${el.base17}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
string.special.path = {
|
||||
color = "#${el.base17}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
string.special.symbol = {
|
||||
color = "#${el.base0F}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
string.special.url = {
|
||||
color = "#${el.base06}";
|
||||
font_style = "italic";
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
character = {
|
||||
color = "#${el.base0C}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
character.special = {
|
||||
color = "#${el.base17}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
boolean = {
|
||||
color = "#${el.base09}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
number = {
|
||||
color = "#${el.base09}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
number.float = {
|
||||
color = "#${el.base09}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
type = {
|
||||
color = "#${el.base0A}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
type.builtin = {
|
||||
color = "#${el.base0E}";
|
||||
font_style = "italic";
|
||||
font_weight = null;
|
||||
};
|
||||
type.definition = {
|
||||
color = "#${el.base0A}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
type.interface = {
|
||||
color = "#${el.base0A}";
|
||||
font_style = "italic";
|
||||
font_weight = null;
|
||||
};
|
||||
type.super = {
|
||||
color = "#${el.base0A}";
|
||||
font_style = "italic";
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
attribute = {
|
||||
color = "#${el.base09}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
property = {
|
||||
color = "#${el.base0D}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
function = {
|
||||
color = "#${el.base0D}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
function.builtin = {
|
||||
color = "#${el.base09}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
function.call = {
|
||||
color = "#${el.base0D}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
function.macro = {
|
||||
color = "#${el.base0C}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
function.method = {
|
||||
color = "#${el.base0D}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
function.method.call = {
|
||||
color = "#${el.base0D}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
constructor = {
|
||||
color = "#${el.base0F}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
operator = {
|
||||
color = "#${el.base15}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
keyword = {
|
||||
color = "#${el.base0E}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
keyword.modifier = {
|
||||
color = "#${el.base0E}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
keyword.type = {
|
||||
color = "#${el.base0E}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
keyword.coroutine = {
|
||||
color = "#${el.base0E}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
keyword.function = {
|
||||
color = "#${el.base0E}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
keyword.operator = {
|
||||
color = "#${el.base0E}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
keyword.import = {
|
||||
color = "#${el.base0E}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
keyword.repeat = {
|
||||
color = "#${el.base0E}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
keyword.return = {
|
||||
color = "#${el.base0E}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
keyword.debug = {
|
||||
color = "#${el.base0E}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
keyword.exception = {
|
||||
color = "#${el.base0E}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
keyword.conditional = {
|
||||
color = "#${el.base0E}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
keyword.conditional.ternary = {
|
||||
color = "#${el.base0E}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
keyword.directive = {
|
||||
color = "#${el.base17}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
keyword.directive.define = {
|
||||
color = "#${el.base17}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
keyword.export = {
|
||||
color = "#${el.base15}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
punctuation = {
|
||||
color = "#${el.base05}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
punctuation.delimiter = {
|
||||
color = "#${el.base05}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
punctuation.bracket = {
|
||||
color = "#${el.base05}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
punctuation.special = {
|
||||
color = "#${el.base17}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
punctuation.special.symbol = {
|
||||
color = "#${el.base0F}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
punctuation.list_marker = {
|
||||
color = "#${el.base0C}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
comment = {
|
||||
color = "#${el.base05}";
|
||||
font_style = "italic";
|
||||
font_weight = null;
|
||||
};
|
||||
comment.doc = {
|
||||
color = "#${el.base05}";
|
||||
font_style = "italic";
|
||||
font_weight = null;
|
||||
};
|
||||
comment.documentation = {
|
||||
color = "#${el.base05}";
|
||||
font_style = "italic";
|
||||
font_weight = null;
|
||||
};
|
||||
comment.error = {
|
||||
color = "#${el.base08}";
|
||||
font_style = "italic";
|
||||
font_weight = null;
|
||||
};
|
||||
comment.warning = {
|
||||
color = "#${el.base0A}";
|
||||
font_style = "italic";
|
||||
font_weight = null;
|
||||
};
|
||||
comment.hint = {
|
||||
color = "#${el.base0D}";
|
||||
font_style = "italic";
|
||||
font_weight = null;
|
||||
};
|
||||
comment.todo = {
|
||||
color = "#${el.base0F}";
|
||||
font_style = "italic";
|
||||
font_weight = null;
|
||||
};
|
||||
comment.note = {
|
||||
color = "#${el.base06}";
|
||||
font_style = "italic";
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
diff.plus = {
|
||||
color = "#${el.base0B}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
diff.minus = {
|
||||
color = "#${el.base08}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
tag = {
|
||||
color = "#${el.base0D}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
tag.attribute = {
|
||||
color = "#${el.base0A}";
|
||||
font_style = "italic";
|
||||
font_weight = null;
|
||||
};
|
||||
tag.delimiter = {
|
||||
color = "#${el.base0C}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
parameter = {
|
||||
color = "#${el.base12}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
field = {
|
||||
color = "#${el.base07}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
namespace = {
|
||||
color = "#${el.base0A}";
|
||||
font_style = "italic";
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
float = {
|
||||
color = "#${el.base09}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
symbol = {
|
||||
color = "#${el.base17}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
string.regex = {
|
||||
color = "#${el.base09}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
text = {
|
||||
color = "#${el.base05}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
emphasis.strong = {
|
||||
color = "#${el.base12}";
|
||||
font_style = null;
|
||||
font_weight = 700;
|
||||
};
|
||||
|
||||
emphasis = {
|
||||
color = "#${el.base12}";
|
||||
font_style = "italic";
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
embedded = {
|
||||
color = "#${el.base12}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
text.literal = {
|
||||
color = "#${el.base0B}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
concept = {
|
||||
color = "#${el.base16}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
enum = {
|
||||
color = "#${el.base0C}";
|
||||
font_style = null;
|
||||
font_weight = 700;
|
||||
};
|
||||
|
||||
function.decorator = {
|
||||
color = "#${el.base09}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
type.class.definition = {
|
||||
color = "#${el.base0A}";
|
||||
font_style = null;
|
||||
font_weight = 700;
|
||||
};
|
||||
|
||||
hint = {
|
||||
color = "#${el.base04}";
|
||||
font_style = "italic";
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
link_text = {
|
||||
color = "#${el.base0D}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
link_uri = {
|
||||
color = "#${el.base06}";
|
||||
font_style = "italic";
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
parent = {
|
||||
color = "#${el.base09}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
predictive = {
|
||||
color = "#${el.base03}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
predoc = {
|
||||
color = "#${el.base08}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
primary = {
|
||||
color = "#${el.base12}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
tag.doctype = {
|
||||
color = "#${el.base0E}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
string.doc = {
|
||||
color = "#${el.base0C}";
|
||||
font_style = "italic";
|
||||
font_weight = null;
|
||||
};
|
||||
|
||||
title = {
|
||||
color = "#${el.base05}";
|
||||
font_style = null;
|
||||
font_weight = 800;
|
||||
};
|
||||
|
||||
variant = {
|
||||
color = "#${el.base08}";
|
||||
font_style = null;
|
||||
font_weight = null;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
28
modules/home/gui/apps/code/zed/config/userSettings/default.nix
Executable file
28
modules/home/gui/apps/code/zed/config/userSettings/default.nix
Executable file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
flake,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
configPath = ./config;
|
||||
assistantPath = import (configPath + /assistant) { inherit flake; };
|
||||
interfacePath = import (configPath + /interface) { inherit flake; };
|
||||
languagesPath = import (configPath + /languages);
|
||||
lspPath = import (configPath + /lsp);
|
||||
terminalPath = import (configPath + /terminal) { inherit flake; };
|
||||
# experimentalPath = import (configPath + /theme) { inherit config flake; };
|
||||
gitPath = import (configPath + /git);
|
||||
miscPath = import (configPath + /misc) { inherit lib pkgs; };
|
||||
in
|
||||
{
|
||||
git = gitPath;
|
||||
languages = languagesPath;
|
||||
lsp = lspPath;
|
||||
terminal = terminalPath;
|
||||
# experimental.theme_overrides = experimentalPath;
|
||||
|
||||
}
|
||||
// assistantPath
|
||||
// interfacePath
|
||||
// miscPath
|
32
modules/home/gui/apps/code/zed/default.nix
Executable file
32
modules/home/gui/apps/code/zed/default.nix
Executable file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
config,
|
||||
flake,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
configPath = ./config;
|
||||
extensionsPath = import (configPath + /extensions);
|
||||
userKeymapsPath = import (configPath + /userKeymaps);
|
||||
userSettingsPath = import (configPath + /userSettings) {
|
||||
inherit
|
||||
config
|
||||
flake
|
||||
lib
|
||||
pkgs
|
||||
;
|
||||
};
|
||||
extraPackagesPath = import (configPath + /extraPackages) { inherit pkgs; };
|
||||
packagePath = flake.inputs.zed-editor.packages.${pkgs.system}.default;
|
||||
in
|
||||
{
|
||||
programs.zed-editor = {
|
||||
enable = true;
|
||||
# package = packagePath;
|
||||
extraPackages = extraPackagesPath;
|
||||
extensions = extensionsPath;
|
||||
userKeymaps = userKeymapsPath;
|
||||
userSettings = userSettingsPath;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue