This commit is contained in:
LunarAkai 2025-03-16 19:45:20 +01:00
commit 3bfebb286d
14 changed files with 235 additions and 34 deletions

View file

@ -1,7 +1,10 @@
{pkgs, ...}: {
imports = [
./zsh
./gh.nix
./git.nix
./oh-my-posh.nix
./tmux.nix
];
home.packages = with pkgs; [

View file

@ -0,0 +1,8 @@
{
programs.gh = {
enable = true;
settings = {
git_protocol = "ssh";
};
};
}

View file

@ -0,0 +1,11 @@
{lib, ...}: {
programs.git = {
enable = true;
userName = lib.mkDefault "LunarAkai";
userEmail = lib.mkDefault "akai@lunarakai.de";
extraConfig = {
init.defaultBranch = "main";
};
lfs.enable = true;
};
}

View file

@ -0,0 +1,31 @@
{pkgs, ...}: {
programs.tmux = {
enable = true;
prefix = "C-Space";
baseIndex = 1;
newSession = true;
mouse = true;
clock24 = true;
escapeTime = 0;
shell = "${pkgs.zsh} /bin/zsh";
plugins = with pkgs; [
tmuxPlugins.yank
tmuxPlugins.sensible
tmuxPlugins.catppuccin
];
extraConfig = ''
# set true color
set-option -sa terminal-overrides ",xterm*:Tc"
# open panes in current directory
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# easy reloads
bind M-r source-file ~/.config/tmux/tmux.conf
'';
};
}

View file

@ -7,6 +7,10 @@
oh-my-zsh = {
enable = true;
plugins = [
"gh"
"rust"
];
};
history.size = 10000;
};

View file

@ -0,0 +1,38 @@
{pkgs, ...}: {
programs.vscode = {
enable = true;
extensions = with pkgs.vscode-marketplace; [
golang.go
redhat.java
redhat.ansible
redhat.vscode-yaml
rust-lang.rust-analyzer
ritwickdey.liveserver
ecmel.vscode-html-css
mhutchie.git-graph
pixl-garden.bongocat
# theme
catppuccin.catppuccin-vsc
catppuccin.catppuccin-vsc-icons
];
profiles.default.userSettings = {
# pls stop adding generative "AI" to everything :c
"chat.agent.enabled" = false;
"chat.commandCenter.enabled" = false;
"editor.semanticHighlighting.enabled" = true;
"terminal.integrated.minimumContrastRatio" = 1;
"window.titleBarStyle" = "custom";
"workbench.colorTheme" = "Catppuccin Macchiato";
"catppuccin.accentColor" = "mauve";
"catppuccin.customUIColors"."mauve"."statusBar.foreground" = "accent";
"workbench.iconTheme" = "catppuccin-macchiato";
"[nix]"."editor.tabSize" = 2;
};
};
}