mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nix] Redo and restructure the entire config
Thanks @KaitlynEthylia :)
This commit is contained in:
parent
19b92cd8fd
commit
2daf5f1b05
13 changed files with 378 additions and 302 deletions
31
nix/home/zsh.nix
Normal file
31
nix/home/zsh.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ self, ... }:
|
||||
|
||||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
initExtra = ''
|
||||
export GPG_TTY=$(tty)
|
||||
source ~/.dotfiles/zsh/zshrc #source ${self}/zsh/zshrc
|
||||
source "$HOME/.cargo/env"
|
||||
|
||||
[[ -d "$HOME/.local/bin" ]] || mkdir "$HOME/.local/bin"
|
||||
|
||||
export PATH="/Library/Developer/CommandLineTools/usr/bin:$PATH"
|
||||
export PATH="$PATH:$HOME/.local/bin"
|
||||
export PATH="$PATH:$HOME/.npm-packages/bin"
|
||||
export PATH="$PATH:$HOME/.dotnet/tools"
|
||||
export PATH="$PATH:$HOME/.config/composer/vendor/bin"
|
||||
export FRENYARD_SCALE=2.40
|
||||
export RETHINK_API="https://rethink.alyxia.dev"
|
||||
export KUBECONFIG="$HOME/.kube/config.yaml"
|
||||
|
||||
function violent-update() {
|
||||
# <https://github.com/adryd325/dotfiles/blob/c52d10f0cb4b54ee46e2ac5b01b8be9f8d57973d/install.sh#L17>
|
||||
sudo -v; while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
|
||||
cd "$HOME/.dotfiles/nix";
|
||||
sudo nix-channel --update && nix-channel --update;
|
||||
sudo nix-env -u;
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue