mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
Setup hooks for chezmoi apply, setup nushell
This commit is contained in:
parent
fe689a9a67
commit
2e6db891ec
7 changed files with 38 additions and 89 deletions
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
outputs,
|
outputs,
|
||||||
# lib,
|
|
||||||
# config,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
|
@ -16,6 +14,7 @@
|
||||||
xdg.enable = true;
|
xdg.enable = true;
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
./shell.nix
|
||||||
./fish.nix
|
./fish.nix
|
||||||
./nushell.nix
|
./nushell.nix
|
||||||
# ./nom.nix
|
# ./nom.nix
|
||||||
|
|
@ -32,9 +31,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# Fonts
|
|
||||||
#(nerdfonts.override {fonts = ["JetBrainsMono"];})
|
|
||||||
|
|
||||||
unstable.nix-output-monitor
|
unstable.nix-output-monitor
|
||||||
|
|
||||||
# dotfiles
|
# dotfiles
|
||||||
|
|
@ -114,6 +110,10 @@
|
||||||
shellWrapperName = "y";
|
shellWrapperName = "y";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.zoxide = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
home.stateVersion = "23.11";
|
home.stateVersion = "23.11";
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
21
dot_config/flake/home/empty_shell.nix
Normal file
21
dot_config/flake/home/empty_shell.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{...}: {
|
||||||
|
home.shellAliases = {
|
||||||
|
# Git
|
||||||
|
gc = "git commit";
|
||||||
|
gcm = "git commit -m";
|
||||||
|
# gac = "git add . and git commit";
|
||||||
|
# gacp = "gac and git push";
|
||||||
|
gs = "git status";
|
||||||
|
|
||||||
|
# nix
|
||||||
|
flake = "nix flake";
|
||||||
|
|
||||||
|
# home-manager
|
||||||
|
hm-upgrade = "nix flake update --flake ~/.local/share/chezmoi/dot_config/flake#";
|
||||||
|
hm-update = "home-manager switch --flake ~/.config/flake";
|
||||||
|
|
||||||
|
# chezmoi
|
||||||
|
dot_apply = "chezmoi apply";
|
||||||
|
dot_pull = "chezmoi update";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -39,36 +39,5 @@
|
||||||
src = pkgs.fishPlugins.forgit.src;
|
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 ~/.local/share/chezmoi/dot_config/flake#";
|
|
||||||
hm-update = "home-manager switch --flake ~/.config/flake";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
gnome.gnome-tweaks
|
gnome-tweaks
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.gnome-shell = {
|
programs.gnome-shell = {
|
||||||
|
|
|
||||||
|
|
@ -1,44 +1,15 @@
|
||||||
{pkgs, ...}: {
|
{config, ...}: {
|
||||||
programs.nushell = {
|
programs.nushell = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
envFile = {
|
shellAliases =
|
||||||
text = ''
|
config.home.shellAliases;
|
||||||
$env.EDITOR = hx
|
|
||||||
$env.GIT_EDITOR = $env.EDITOR
|
|
||||||
$env.DEBMAIL = "tyler@tylermayoff.com"
|
|
||||||
$env.XDG_CONFIG_HOME = "$HOME/.config"
|
|
||||||
$env.XDG_CACHE_HOME = "$HOME/.cache"
|
|
||||||
$env.XDG_DATA_HOME = "$HOME/.local/share"
|
|
||||||
$env.XDG_STATE_HOME = "$HOME/.local/state"
|
|
||||||
|
|
||||||
zoxide init nushell | save -f ~/.config/nushell/zoxide.nu
|
extraConfig = ''
|
||||||
|
$env.config.show_banner = false
|
||||||
|
|
||||||
|
def gac [] { git add .; git commit }
|
||||||
|
def gacp [] { gac; git push }
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
shellAliases = {
|
|
||||||
# Git
|
|
||||||
gc = "git commit";
|
|
||||||
gcm = "git commit -m";
|
|
||||||
gac = "git add . and git commit";
|
|
||||||
gacp = "gac and git push";
|
|
||||||
gs = "git status";
|
|
||||||
|
|
||||||
yac = "yadm add --interactive and yadm commit";
|
|
||||||
yacp = "yac and yadm push";
|
|
||||||
|
|
||||||
# nix
|
|
||||||
flake = "nix flake";
|
|
||||||
|
|
||||||
# home-manager
|
|
||||||
hm-upgrade = "nix flake update --flake ~/.config/home-manager/";
|
|
||||||
hm-update = "home-manager switch --impure";
|
|
||||||
};
|
|
||||||
|
|
||||||
configFile = {
|
|
||||||
text = ''
|
|
||||||
source ~/.config/nushell/zoxide.nu
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
{pkgs, ...}: {
|
|
||||||
programs.nushell = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
envFile = ''
|
|
||||||
$env.EDITOR = hx
|
|
||||||
$env.GIT_EDITOR = $env.EDITOR
|
|
||||||
$env.DEBMAIL = "tyler@tylermayoff.com"
|
|
||||||
$env.XDG_CONFIG_HOME = "$HOME/.config"
|
|
||||||
$env.XDG_CACHE_HOME = "$HOME/.cache"
|
|
||||||
$env.XDG_DATA_HOME = "$HOME/.local/share"
|
|
||||||
$env.XDG_STATE_HOME = "$HOME/.local/state"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
3
run_home-manager.sh.tmpl
Normal file
3
run_home-manager.sh.tmpl
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
home-manager switch --flake ~/.config/flake/
|
||||||
Loading…
Add table
Add a link
Reference in a new issue