Merge branch 'master' of ssh://ssh.nx2.site:50022/nx2/dotfiles

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2026-02-01 21:51:36 +01:00
11 changed files with 79 additions and 49 deletions

View File

@@ -64,6 +64,7 @@
system.stateVersion = hyper.main-pkgs-version; system.stateVersion = hyper.main-pkgs-version;
programs.nix-ld.enable = true;
programs.bash.shellInit = '' programs.bash.shellInit = ''
if [[ "$USER" == "${hyper.user}" ]]; then if [[ "$USER" == "${hyper.user}" ]]; then
source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh

View File

@@ -27,15 +27,15 @@
}, },
"NxNORTH": { "NxNORTH": {
"base": { "base": {
"foreground": "#ccd6fe", "foreground": "#e7ccfe",
"background": "#000519" "background": "#0d0019"
}, },
"to_alter": { "to_alter": {
"accent": "#325dff", "accent": "#9f35fc",
"secondary": "#ff3233", "secondary": "#324cff",
"tertiary": "#3cff32", "tertiary": "#4a62e7",
"special": "#ffd331", "special": "#91fc34",
"weird": "#ff31e5" "weird": "#fc344f"
} }
}, },
"NxDCS": { "NxDCS": {

Binary file not shown.

View File

@@ -65,7 +65,8 @@ in /* css */ ''
background : linear-gradient(180deg,rgba(${f secondary.dark}, ${builtins.toString rice.transparency}) 0%, rgba(${f accent.dark}, ${builtins.toString rice.transparency}) 100%) !important; background : linear-gradient(180deg,rgba(${f secondary.dark}, ${builtins.toString rice.transparency}) 0%, rgba(${f accent.dark}, ${builtins.toString rice.transparency}) 100%) !important;
} }
.tabbrowser-tab[selected="true"] { .tabbrowser-tab[selected="true"], .tab-text[selected=""],
.tab-close-button[selected=""] {
color: ${background} !important; color: ${background} !important;
} }
hbox#browser { hbox#browser {

View File

@@ -39,6 +39,9 @@ in /* css */ ''
body, html, .bg-neutral-background, .threadline, reddit-sidebar-nav, shreddit-post, aside, .reddit-search-bar, comment-body-header, shreddit-comment-tree, #flex-left-nav-container { body, html, .bg-neutral-background, .threadline, reddit-sidebar-nav, shreddit-post, aside, .reddit-search-bar, comment-body-header, shreddit-comment-tree, #flex-left-nav-container {
background-color: transparent !important; background-color: transparent !important;
} }
#search-dropdown-results-container {
background: rgba(${f background},0.8) !important;
}
#main-content { #main-content {
background-color: rgba(${f background},0.5)!important; background-color: rgba(${f background},0.5)!important;
} }

View File

@@ -96,7 +96,9 @@
interactiveShellInit = /* fish */ '' interactiveShellInit = /* fish */ ''
set -g fish_greeting set -g fish_greeting
if not set -q IN_NIX_SHELL if not set -q IN_NIX_SHELL
if set -q SESSION_FROM_DE if set -q SESSION_FROM_DE; or set -q SESSION_CLONED_FROM_YAZI
set -e SESSION_FROM_DE
set -e SESSION_CLONED_FROM_YAZI
set tmp (mktemp -t "yazi-cwd.XXXXX") set tmp (mktemp -t "yazi-cwd.XXXXX")
yazi --cwd-file="$tmp" ~ yazi --cwd-file="$tmp" ~
if set cwd (cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ] if set cwd (cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
@@ -105,7 +107,6 @@
rm -f -- "$tmp" rm -f -- "$tmp"
end end
nxfetch nxfetch
set -e SESSION_FROM_DE
end end
''; '';
functions = { functions = {
@@ -115,10 +116,21 @@
''; '';
nx_backup = let nx_backup = let
destination = if hyper.host == "NxNORTH" then "${hyper.home}/shared/" else "${hyper.home}/backups/"; destination = if hyper.host == "NxNORTH" then "${hyper.home}/shared/" else "${hyper.home}/backups/";
in pkgs.lib.mkIf (hyper.isPersonal) '' in pkgs.lib.mkIf (hyper.isPersonal) /* fish */ ''
set RPATH (curl -s https://${hyper.domain}/latest-backup) set RPATH (curl -s https://${hyper.domain}/latest-backup)
rsync -avz --info=progress2 -e "ssh -p ${builtins.toString secrets.ssh.port}" ${hyper.user}@ssh.${hyper.domain}:"$RPATH" ${destination} rsync -avz --info=progress2 -e "ssh -p ${builtins.toString secrets.ssh.port}" ${hyper.user}@ssh.${hyper.domain}:"$RPATH" ${destination}
''; '';
nx_yazi_into_fish = /* fish */ ''
set tmp (mktemp -t "yazi-cwd.XXXXX")
echo "$PWD" > "$tmp"
yazi --cwd-file="$tmp"
if set cwd (cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
builtin cd -- "$cwd"
end
rm -f "$tmp"
set -g SESSION_CLONED_FROM_YAZI TRUE
'';
# gpg = ''; # gpg = '';
# set bold \e[1m # set bold \e[1m
# set green \e[32m # set green \e[32m

View File

@@ -5,6 +5,7 @@
package = pkgs.ghostty; package = pkgs.ghostty;
settings = with rice.color; { settings = with rice.color; {
background = background; background = background;
window-padding-color = "extend";
background-opacity = builtins.toString rice.transparency; background-opacity = builtins.toString rice.transparency;
clipboard-paste-protection = false; clipboard-paste-protection = false;
clipboard-read = "allow"; clipboard-read = "allow";

View File

@@ -305,31 +305,40 @@
"constant" = accent.bright; "constant" = accent.bright;
"constant.character.escape" = special.bright; "constant.character.escape" = special.bright;
"constant.numeric" = foreground; "constant.numeric" = foreground;
"constructor" = weird.base; "constructor" = secondary.bright;
"debug" = yellow.base; "debug" = yellow.base;
"diagnostic.modifiers" = [ "underline" ]; "diagnostic.modifiers" = [ "underline" ];
"diff.delta" = subtle.bright; "diff.delta" = subtle.bright;
"diff.minus" = negative.bright; "diff.minus" = negative.bright;
"diff.plus" = positive.bright; "diff.plus" = positive.bright;
"error" = red.base; "error" = negative.base;
"function" = secondary.bright; "function" = secondary.bright;
"hint" = tertiary.bright; "hint" = tertiary.bright;
"info" = foreground; "info" = foreground;
"keyword" = special.base; "keyword" = {
"keyword.modifiers" = [ "italic" ]; fg = special.base;
modifiers = [ "bold" ];
};
"label" = foreground; "label" = foreground;
"namespace" = weird.bright; "namespace" = weird.bright;
"operator" = foreground; "operator" = foreground;
"special" = special.base; "special" = special.base;
"string" = secondary.bright; "string" = secondary.bright;
"type" = red.base; "type" = {
"variable" = accent.base; fg = tertiary.base;
"variableother.member" = foreground; };
"warning" = red.base; "variable" = { fg = accent.base; };
"variable.builtin" = { fg = accent.base; bg = subtle.darker; };
"variable.parameter" = { fg = accent.base; bg = accent.darker; };
"warning" = yellow.base;
"markup.heading" = accent.base; "markup.heading" = {
fg = accent.base;
bg = accent.darker;
modifiers = [ "bold" ];
};
"markup.bold" = { "markup.bold" = {
fg = tertiary.bright; fg = secondary.bright;
modifiers = [ "bold" ]; modifiers = [ "bold" ];
}; };
"italic" = { "italic" = {
@@ -339,7 +348,7 @@
"markup.linktext" = accent.base; "markup.linktext" = accent.base;
"markup.linkurl" = { "markup.linkurl" = {
fg = tertiary.dark; fg = tertiary.dark;
modifiers = [ "underlined" ]; underline.style = "line";
}; };
"markup.list" = accent.bright; "markup.list" = accent.bright;
"markup.quote" = weird.bright; "markup.quote" = weird.bright;
@@ -356,7 +365,7 @@
}; };
"ui.bufferline" = { # the top line ("tab"-line) "ui.bufferline" = { # the top line ("tab"-line)
fg = accent.base; fg = accent.base;
bg = black.base; bg = accent.darker;
}; };
"ui.bufferline.active" = { # the active "tab" "ui.bufferline.active" = { # the active "tab"
fg = background; fg = background;
@@ -368,22 +377,22 @@
modifiers = [ "reversed" ]; modifiers = [ "reversed" ];
}; };
"ui.cursorline.primary" = { # the line on which the cursor is on "ui.cursorline.primary" = { # the line on which the cursor is on
bg = black.base; bg = secondary.darker;
}; };
"ui.cursor.match" = { # Matching bracket etc. "ui.cursor.match" = { # Matching bracket etc.
bg = green.dark; bg = special.dark;
modifiers = [ ]; modifiers = [ ];
}; };
"ui.gutter" = { "ui.gutter" = {
bg = black.base; bg = accent.darker;
}; };
"ui.help" = { "ui.help" = {
fg = green.base; fg = accent.base;
bg = black.base; bg = accent.darker;
}; };
"ui.linenr" = { "ui.linenr" = {
fg = white.dark; fg = accent.bright;
bg = black.base; bg = accent.darker;
}; };
"ui.linenr.selected" = { "ui.linenr.selected" = {
fg = accent.bright; fg = accent.bright;
@@ -391,18 +400,18 @@
}; };
"ui.menu" = { "ui.menu" = {
fg = accent.base; fg = accent.base;
bg = black.base; bg = accent.darker;
}; };
"ui.menu.scroll" = { "ui.menu.scroll" = {
fg = yellow.dark; fg = subtle.base;
bg = background; bg = background;
}; };
"ui.menu.selected" = { "ui.menu.selected" = {
fg = red.base; fg = secondary.bright;
bg = blue.dark; bg = secondary.darker;
}; };
"ui.popup" = { "ui.popup" = {
bg = black.base; bg = accent.darker;
}; };
"ui.selection" = { "ui.selection" = {
bg = accent.dark; bg = accent.dark;
@@ -412,11 +421,11 @@
}; };
"ui.statusline" = { "ui.statusline" = {
fg = accent.bright; fg = accent.bright;
bg = black.base; bg = accent.darker;
}; };
"ui.statusline.inactive" = { "ui.statusline.inactive" = {
fg = red.bright; fg = secondary.bright;
bg = red.dark; bg = secondary.dark;
}; };
"ui.statusline.insert" = { "ui.statusline.insert" = {
fg = green.bright; fg = green.bright;
@@ -433,7 +442,7 @@
"ui.text" = foreground; "ui.text" = foreground;
"ui.text.focus" = accent.base; "ui.text.focus" = accent.base;
"ui.virtual.indent-guide" = { "ui.virtual.indent-guide" = {
fg = black.bright; fg = subtle.dark;
}; };
"ui.virtual.inlay-hint" = { "ui.virtual.inlay-hint" = {
fg = subtle.base; fg = subtle.base;
@@ -444,12 +453,12 @@
}; };
"ui.virtual.jump-label" = { "ui.virtual.jump-label" = {
fg = special.base; fg = special.base;
underline = { bg = special.dark;
style = "dotted"; underline.style = "dotted";
}; modifiers = [ "bold" ];
}; };
"ui.window" = { "ui.window" = {
bg = black.base; bg = accent.darker;
}; };
}; };
}; };

View File

@@ -286,6 +286,7 @@ in {
"dimaround, title:^(terminal-file-picker)$" "dimaround, title:^(terminal-file-picker)$"
"center, title:^(terminal-file-picker)$" "center, title:^(terminal-file-picker)$"
"size 80% 80%, title:^(terminal-file-picker)$" "size 80% 80%, title:^(terminal-file-picker)$"
"size 30% 30%, initialTitle:^(Select Calendar)$" "size 30% 30%, initialTitle:^(Select Calendar)$"
]; ];
@@ -376,7 +377,7 @@ in {
# "SUPER, T, exec, alacritty" # "SUPER, T, exec, alacritty"
# "SUPER SHIFT, T, exec, alacritty -e sh -c "ssh nxace"" # "SUPER SHIFT, T, exec, alacritty -e sh -c "ssh nxace""
"SUPER, T, exec, SESSION_FROM_DE=TRUE ${terminal}" "SUPER, T, exec, SESSION_FROM_DE=TRUE ${terminal}"
"SUPER SHIFT, T, exec, ${terminal-exec}'ssh nxace'" ''SUPER SHIFT, T, exec, ${terminal-exec}'echo -e "\\e]11;#${rice.color.secondary.darker}\\e\\\\" && ssh nxace' '' # yes this is a double hash.
"SUPER, Z, exec, zathura" "SUPER, Z, exec, zathura"
"SUPER, U, exec, [tile] thunderbird " "SUPER, U, exec, [tile] thunderbird "
"SUPER, I, exec, ${terminal-exec}'hx ~/nix-dots/ && fish'" "SUPER, I, exec, ${terminal-exec}'hx ~/nix-dots/ && fish'"

View File

@@ -163,6 +163,7 @@ in {
# Magic # Magic
{ on = "<C-h>"; run = "shell 'hx .' --block"; desc = "Open current directoy in Helix"; } { on = "<C-h>"; run = "shell 'hx .' --block"; desc = "Open current directoy in Helix"; }
{ on = "<C-g>"; run = "shell 'lazygit' --block"; desc = "Open current directoy in Lazygit"; } { on = "<C-g>"; run = "shell 'lazygit' --block"; desc = "Open current directoy in Lazygit"; }
{ on = "<C-y>"; run = ''shell 'ghostty --command="fish -C nx_yazi_into_fish"' --orphan ''; desc = "Open current directoy in a new ghostty window"; }
]; ];
tasks.keymap = [ tasks.keymap = [
# Task # Task
@@ -360,8 +361,8 @@ in {
}; };
pick = { pick = {
border = { fg = border; }; border = { fg = border; };
active = { fg = accent.base; }; active = { fg = accent.bright; };
inactive = { fg = subtle.base; }; inactive = { fg = subtle.bright; };
}; };
status = { status = {
# sep_right = { open = ""; close = ""; }; # sep_right = { open = ""; close = ""; };
@@ -379,7 +380,7 @@ in {
indicator = { # your "cursor" indicator = { # your "cursor"
parent = { fg = secondary.darker; bg = secondary.base; }; parent = { fg = secondary.darker; bg = secondary.base; };
current = { fg = accent.darker; bg = accent.base; }; current = { fg = accent.darker; bg = accent.base; };
preview = { fg = secondary.base; bg = secondary.dark; }; preview = { fg = secondary.base; bg = secondary.darker; };
# padding = { open = " "; close = " "; }; # padding = { open = " "; close = " "; };
}; };
cmp = { cmp = {
@@ -403,8 +404,8 @@ in {
}; };
tasks = { tasks = {
border = { fg = border2; }; border = { fg = border2; };
title = {}; title = { fg = accent.base; bold = true; };
hovered = { underline = true; }; hovered = { fg = accent.bright; };
}; };
which = { which = {
mask = { bg = black.base; }; mask = { bg = black.base; };

View File

@@ -3,6 +3,7 @@
variables = { variables = {
EDITOR = "hx"; EDITOR = "hx";
VISUAL = "hx"; VISUAL = "hx";
TERMINAL = "ghostty";
}; };
systemPackages = with pkgs; [ systemPackages = with pkgs; [
helix helix