Add ssh and git configuration

This commit is contained in:
Nina Chlóe Kassandra Reiß
2026-04-20 15:59:52 +02:00
parent 482cb354d3
commit 64817ef4ff
22 changed files with 569 additions and 429 deletions

View File

@@ -1,4 +1,9 @@
{ config, pkgs, lib, ... }: {
config,
pkgs,
lib,
...
}:
let let
profile = import ./profile.nix; profile = import ./profile.nix;
in in

View File

@@ -105,9 +105,14 @@
} }
]; ];
Remove = [ "Google" "Bing" "Amazon.com" "eBay" ]; Remove = [
"Google"
"Bing"
"Amazon.com"
"eBay"
];
}; };
}; };
}; };
} }

View File

@@ -1,4 +1,9 @@
{ config, pkgs, lib, ... }: {
config,
pkgs,
lib,
...
}:
let let
tbProfile = pkgs.stdenv.mkDerivation { tbProfile = pkgs.stdenv.mkDerivation {
name = "thunderbird-profile"; name = "thunderbird-profile";

View File

@@ -48,11 +48,13 @@ in
home.file.".config/hypr" = { home.file.".config/hypr" = {
source = dotfiles_hypr; source = dotfiles_hypr;
force = true;
recursive = true; recursive = true;
}; };
home.file.".config/waybar" = { home.file.".config/waybar" = {
source = dotfiles_waybar; source = dotfiles_waybar;
force = true;
recursive = true; recursive = true;
}; };

View File

@@ -27,7 +27,7 @@ in
# Home Manager is pretty good at managing dotfiles. The primary way to manage # Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'. # plain files is through 'home.file'.
home.file = { #home.file = {
# # Building this configuration will create a copy of 'dotfiles/screenrc' in # # Building this configuration will create a copy of 'dotfiles/screenrc' in
# # the Nix store. Activating the configuration will then make '~/.screenrc' a # # the Nix store. Activating the configuration will then make '~/.screenrc' a
# # symlink to the Nix store copy. # # symlink to the Nix store copy.
@@ -38,7 +38,7 @@ in
# org.gradle.console=verbose # org.gradle.console=verbose
# org.gradle.daemon.idletimeout=3600000 # org.gradle.daemon.idletimeout=3600000
# ''; # '';
}; #};
home.sessionVariables = { home.sessionVariables = {
EDITOR = "nvim"; EDITOR = "nvim";

View File

@@ -10,6 +10,7 @@ in
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
git
astyle astyle
hyfetch hyfetch
fzf-zsh fzf-zsh
@@ -19,14 +20,48 @@ in
programs.tmux = { programs.tmux = {
enable = true; enable = true;
clock24 = true; clock24 = true;
extraConfig = '' extraConfig = builtins.readFile ./external/tmux.conf;
'';
}; };
programs.direnv.enable = true; programs.direnv.enable = true;
programs.direnv.nix-direnv.enable = true; programs.direnv.nix-direnv.enable = true;
programs.git = {
enable = true;
settings = {
user = {
name = "Nina Chlóe Kassandra Reiß";
email = "nina.reiss@nickr.eu";
};
push = {
autoSetupRemote = true;
};
};
};
programs.ssh = {
enable = true;
enableDefaultConfig = true;
extraConfig = ''
Host git.nickr.eu
HostName git.nickr.eu
Port 22
Host nickr.eu
HostName nickr.eu
Port 222
Host nichkara.eu
HostName nichkara.eu
Port 222
Host git.nichkara.eu
HostName git.nichkara.eu
Port 22
'';
};
programs.zsh = { programs.zsh = {
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;

View File

@@ -11,6 +11,7 @@ in
ripgrep-all ripgrep-all
ctags ctags
lua54Packages.luarocks-nix lua54Packages.luarocks-nix
nixfmt
]; ];
programs.neovim = { programs.neovim = {

87
terminal-environment/external/tmux.conf vendored Normal file
View File

@@ -0,0 +1,87 @@
##### CORE #####
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",xterm-256color:Tc"
set -g mouse on
set -g focus-events on
set -g history-limit 100000
set -g base-index 1
setw -g pane-base-index 1
##### TIMING / UX #####
set -g escape-time 10
set -g repeat-time 600
##### BELL / ACTIVITY #####
# Keine akustische Bell, nur visuell
set -g bell-action none
set -g visual-bell on
set -g visual-activity on
setw -g monitor-activity on
set -g activity-action none
# Window-Status bei Bell / Activity (Fallback-Styling)
set -g window-status-bell-style "fg=#ff5555,bold"
set -g window-status-activity-style "fg=#f1fa8c,bold"
##### COLORS (Dracula-ish) #####
set -g status-style "bg=#1e1f29,fg=#c0caf5"
set -g message-style "bg=#2a2b3d,fg=#c0caf5"
set -g pane-border-style "fg=#3b4261"
set -g pane-active-border-style "fg=#7aa2f7"
##### STATUS BAR #####
set -g status on
set -g status-interval 2
set -g status-position bottom
set -g status-justify left
set -g status-left-length 100
set -g status-right-length 100
##### LEFT: Session / Host #####
set -g status-left " \
#[fg=#7aa2f7,bold] #S#[default] \
#[fg=#565f89] #[fg=#9ece6a]#H#[default] \
"
##### WINDOW LIST #####
# Inactive windows
setw -g window-status-format " \
#[fg=#565f89] #I:#W#[default] \
#{?window_bell_flag,#[fg=#ff5555]🔔#[default],} \
"
# Active window
setw -g window-status-current-format " \
#[fg=#1e1f29,bg=#7aa2f7,bold] #I:#W#[default] \
#[fg=#1e1f29,bg=#7aa2f7]\
#{?window_bell_flag,🔔,}#[default] \
"
##### RIGHT: Clock only (no broken flags) #####
set -g status-right " \
#[fg=#565f89] #[fg=#7dcfff] %H:%M#[default] \
"
##### PANE INFO #####
set -g pane-border-status top
set -g pane-border-format " #[fg=#565f89]#P #[fg=#7aa2f7]#{pane_current_command}#[default] "
##### SMART SPLITS #####
bind | split-window -h
bind - split-window -v
#unbind '"'
#unbind %
##### COPY MODE (VI) #####
setw -g mode-keys vi
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send -X copy-selection
##### DIM INACTIVE PANES #####
set -g window-style "bg=#1a1b26"
set -g window-active-style "bg=#1e1f29"

View File

@@ -39,25 +39,25 @@ let
# envrc generieren # envrc generieren
cat > .envrc <<EOF cat > .envrc <<EOF
export GENV_BOX="$BOX" export GENV_BOX="$BOX"
# container starten # container starten
distrobox start "$GENV_BOX" >/dev/null 2>&1 || true distrobox start "$GENV_BOX" >/dev/null 2>&1 || true
# setup einmalig # setup einmalig
if [ ! -f .genv/.init ]; then if [ ! -f .genv/.init ]; then
echo "[genv] setup läuft" echo "[genv] setup läuft"
distrobox enter "$GENV_BOX" -- bash .genv/setup.sh distrobox enter "$GENV_BOX" -- bash .genv/setup.sh
touch .genv/.init touch .genv/.init
fi fi
# tmux workflow # tmux workflow
if [ -z "$TMUX" ]; then if [ -z "$TMUX" ]; then
tmux new-session -A -s "$GENV_BOX" \ tmux new-session -A -s "$GENV_BOX" \
\; new-window -n editor "nvim" \ \; new-window -n editor "nvim" \
\; new-window -n dev "distrobox enter $GENV_BOX" \; new-window -n dev "distrobox enter $GENV_BOX"
fi fi
EOF EOF
echo "[genv] fertig direnv allow" echo "[genv] fertig direnv allow"
''; '';