refactor: home/Winter, home/common
home/Winter/ -> home/Winter/Winter/ home/common/ -> home/Winter/common/
This commit is contained in:
1 parent
6bb20a8f29
commit
03d7b5569d
18 files changed
+131
-223
No files matched your search
@@ -0,0 +1,77 @@
|
||||
# This is your home-manager configuration file
|
||||
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
home.packages = (
|
||||
(with pkgs; [
|
||||
# --- Core Wayland plumbing (Stable 26.05) ---
|
||||
wl-clipboard
|
||||
])
|
||||
++ (with pkgs.unstablePkgs; [
|
||||
# --- Fast-moving CLI utils (Unstable) ---
|
||||
clipse
|
||||
timg
|
||||
])
|
||||
);
|
||||
# --- Shell environment ---
|
||||
programs.direnv.enable = true;
|
||||
home.shellAliases = {
|
||||
ll = "ls -l";
|
||||
la = "ls -a";
|
||||
lal = "ls -al";
|
||||
};
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
ls = "eza --icons --group-directories-last --git";
|
||||
lA = "ls --all --all"; #eza show . and ..
|
||||
lAl = "lA -l";
|
||||
tree = "ls --tree";
|
||||
cat = "bat --no-paging --style=plain";
|
||||
kys = "shutdown 0";
|
||||
please = "sudo";
|
||||
};
|
||||
};
|
||||
home.shell.enableFishIntegration = true;
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
#shellAliases = {};
|
||||
initExtra = ''
|
||||
# "check if parent process is not fish" && "make nested shells work properly"
|
||||
if grep -qv fish /proc/$PPID/comm && [[ $SHLVL == [12] ]]; then
|
||||
# set $SHELL for better integration with programs like nix shell, tmux, etc.
|
||||
SHELL=${pkgs.fish}/bin/fish exec fish
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
#extraConfig = "include *.conf";
|
||||
settings = {
|
||||
"include" = "colors.conf";
|
||||
};
|
||||
};
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
# --- CLI utils ---
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
init.defaultBranch = "main";
|
||||
user.name = "winter";
|
||||
user.email = "149337190+WinterEkisha@users.noreply.github.com";
|
||||
};
|
||||
};
|
||||
programs.eza.enable = true;
|
||||
programs.bat.enable = true;
|
||||
programs.btop.enable = true;
|
||||
programs.lazygit.enable = true;
|
||||
programs.tmux.enable = true;
|
||||
}
|
||||
Reference in new issue
Block a user