diff --git a/bash/.bashrc b/bash/.bashrc index d2cfc2f..305b787 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -3,4 +3,7 @@ eval "$(/usr/local/bin/brew shellenv)" +# Machine-local overrides (survives devbox global pull) +[ -f ~/.bashrc.local ] && source ~/.bashrc.local + echo "Running .bashrc Scripts... Complete" diff --git a/chezmoi/dot_zshrc b/chezmoi/dot_zshrc index 280b6b0..75a5bb0 100644 --- a/chezmoi/dot_zshrc +++ b/chezmoi/dot_zshrc @@ -47,4 +47,5 @@ fi eval "$(direnv hook zsh)" test -e "$HOME/.shellfishrc" && source "$HOME/.shellfishrc" - +# Machine-local overrides (not managed by chezmoi, survives devbox global pull) +[ -f ~/.zshrc.local ] && source ~/.zshrc.local diff --git a/devbox.json b/devbox.json index c27ea22..e7e30df 100644 --- a/devbox.json +++ b/devbox.json @@ -6,7 +6,7 @@ "cmatrix@latest", "atuin@latest", "bat@latest", - "btop@latest", + "path:./#btop-gpu", "chezmoi@latest", "cloc@latest", "direnv@latest", @@ -95,7 +95,7 @@ "git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm" ], "install-chezmoi": [ - "chezmoi purge --force && chezmoi init", + "chezmoi init || true", "cp -r $(devbox global path)/chezmoi/* $(chezmoi source-path)", "chezmoi apply --no-pager --progress true" ], diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..da9dffa --- /dev/null +++ b/flake.nix @@ -0,0 +1,23 @@ +{ + description = "Custom overrides for Devbox"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + }; + + outputs = { self, nixpkgs }: + let + system = "x86_64-linux"; + pkgs = import nixpkgs { + inherit system; + config.allowUnfree = true; + }; + in + { + packages.${system} = { + btop-gpu = pkgs.btop.override { + cudaSupport = true; + }; + }; + }; +}