mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
Moved nix files from home-manager to flake to be more generalized
This commit is contained in:
parent
d65ec62e43
commit
6b848b363a
21 changed files with 2 additions and 2 deletions
|
|
@ -1,74 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
interactiveShellInit = ''
|
||||
set -gx EDITOR hx
|
||||
set -gx GIT_EDITOR $EDITOR
|
||||
set -gx DEBEMAIL "tyler@tylermayoff.com"
|
||||
|
||||
fish_add_path $HOME/.local/bin
|
||||
|
||||
source $HOME/.config/fish/variables-$(hostname).fish
|
||||
bind \cz 'fg 2>/dev/null; commandline -f repaint'
|
||||
|
||||
zoxide init fish | source
|
||||
'';
|
||||
|
||||
shellInit = ''
|
||||
set -gx EDITOR hx
|
||||
set -gx GIT_EDITOR $EDITOR
|
||||
set -gx DEBEMAIL "tyler@tylermayoff.com"
|
||||
|
||||
set -xg XDG_DATA_DIRS "$HOME/.nix-profile/share:$XDG_DATA_DIRS"
|
||||
|
||||
fish_add_path $HOME/.local/bin
|
||||
source $HOME/.config/fish/variables-$(hostname).fish
|
||||
'';
|
||||
|
||||
# functions = {
|
||||
# yupdate = {
|
||||
# body = ''
|
||||
# echo "Hello world"
|
||||
# '';
|
||||
# };
|
||||
# };
|
||||
|
||||
plugins = [
|
||||
{
|
||||
name = "forgit";
|
||||
src = pkgs.fishPlugins.forgit.src;
|
||||
}
|
||||
];
|
||||
|
||||
shellAliases = {
|
||||
# ls
|
||||
ls = "eza $eza_params";
|
||||
l = "eza --git-ignore $eza_params";
|
||||
ll = "eza --all --header --long $eza_params";
|
||||
llm = "eza --all --header --long --sort=modified $eza_params";
|
||||
la = "eza -lbhHigUmuSa";
|
||||
lx = "eza -lbhHigUmuSa@";
|
||||
lt = "eza --tree $eza_params";
|
||||
tree = "eza --tree $eza_params";
|
||||
|
||||
# Git
|
||||
gc = "git commit";
|
||||
gcm = "git commit -m";
|
||||
gac = "git add . && git commit";
|
||||
gacp = "gac && git push";
|
||||
gs = "git status";
|
||||
|
||||
# yac = "yadm add . && yadm commit";
|
||||
# yacp = "yac && yadm push";
|
||||
yc = "pushd $HOME/.local/share/yadm/repo.git && git-forgit add && yadm commit && popd";
|
||||
yd = "pushd $HOME/.local/share/yadm/repo.git && git-forgit diff && popd";
|
||||
|
||||
# nix
|
||||
flake = "nix flake";
|
||||
|
||||
# home-manager
|
||||
hm-upgrade = "nix flake update --flake ~/.config/home-manager#";
|
||||
hm-update = "home-manager switch";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue