Compare commits
7 Commits
f61416748a
...
66f1248646
Author | SHA1 | Date |
---|---|---|
|
66f1248646 | |
|
958d1bc6c5 | |
|
912dfa56d4 | |
|
ab6ace45ba | |
|
84c1f532d0 | |
|
bcf7d87eaa | |
|
ffcc0b7f43 |
4
home.nix
4
home.nix
|
@ -16,6 +16,7 @@ in
|
||||||
./syncthing.nix
|
./syncthing.nix
|
||||||
./fzf.nix
|
./fzf.nix
|
||||||
./jj.nix
|
./jj.nix
|
||||||
|
./zellij.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -37,6 +38,9 @@ in
|
||||||
# env vars
|
# env vars
|
||||||
home.sessionVariables = {};
|
home.sessionVariables = {};
|
||||||
|
|
||||||
|
# don't install xdg info:
|
||||||
|
xdg.mime.enable = false;
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
|
|
@ -30,22 +30,20 @@ in
|
||||||
discord
|
discord
|
||||||
freshfetch
|
freshfetch
|
||||||
neofetch
|
neofetch
|
||||||
stable.obsidian
|
|
||||||
dfc
|
dfc
|
||||||
(nixGL anki)
|
(nixGL anki)
|
||||||
(nixGL digikam)
|
(nixGL digikam)
|
||||||
deno
|
deno
|
||||||
stable.nodejs_21
|
stable.nodejs_21
|
||||||
signal-desktop
|
|
||||||
yt-dlp
|
yt-dlp
|
||||||
(pkgs.callPackage ./custom/fortune-kind-custom.nix {})
|
(pkgs.callPackage ./custom/fortune-kind-custom.nix {})
|
||||||
(nixGL aseprite)
|
|
||||||
(nixGL musescore)
|
|
||||||
fend
|
fend
|
||||||
timg
|
timg
|
||||||
graphviz
|
graphviz
|
||||||
(nixGL zotero)
|
(nixGL zotero)
|
||||||
nix-output-monitor
|
nix-output-monitor
|
||||||
npins
|
npins
|
||||||
|
odin
|
||||||
|
decker
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ function current_dir() {
|
||||||
else
|
else
|
||||||
current_dir=${current_dir##*/}
|
current_dir=${current_dir##*/}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo $current_dir
|
echo $current_dir
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,6 +33,21 @@ if [[ -n $ZELLIJ ]]; then
|
||||||
add-zsh-hook preexec set_tab_to_command_line
|
add-zsh-hook preexec set_tab_to_command_line
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# git aliases
|
||||||
|
|
||||||
|
function git_aliases() {
|
||||||
|
echo "git aliases:"
|
||||||
|
echo "\tgs: status -sb"
|
||||||
|
echo "\tgl: log --oneline"
|
||||||
|
echo "\tglast: log -1 HEAD --stat"
|
||||||
|
echo "\tgds: diff --staged"
|
||||||
|
}
|
||||||
|
|
||||||
|
alias gs="git status -sb"
|
||||||
|
alias gl="git log --oneline"
|
||||||
|
alias glast="git log -1 HEAD --stat"
|
||||||
|
alias gds="git diff --staged"
|
||||||
|
|
||||||
# load Cargo
|
# load Cargo
|
||||||
if [ -f "$HOME/.cargo/env" ]; then
|
if [ -f "$HOME/.cargo/env" ]; then
|
||||||
. "$HOME/.cargo/env"
|
. "$HOME/.cargo/env"
|
||||||
|
@ -62,7 +77,7 @@ function set_win_title(){
|
||||||
precmd_functions+=(set_win_title)
|
precmd_functions+=(set_win_title)
|
||||||
|
|
||||||
# start zellij
|
# start zellij
|
||||||
if [ "$TERM_PROGRAM" != "vscode" ]; then
|
if [[ -v "$WITHZELLIJ" && "$TERM_PROGRAM" != "vscode" ]]; then
|
||||||
eval "$(zellij setup --generate-auto-start zsh)"
|
eval "$(zellij setup --generate-auto-start zsh)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
ZELLIJ_AUTO_EXIT = "true";
|
ZELLIJ_AUTO_EXIT = "false";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zellij= {
|
programs.zellij= {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
enableZshIntegration = false;
|
||||||
settings = {
|
settings = {
|
||||||
copy_command = "${pkgs.xclip}/bin/xclip -selection clipboard";
|
copy_command = "${pkgs.xclip}/bin/xclip -selection clipboard";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue