update flake
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
description = "matt's dotfiles — Home Manager modules";
|
||||||
|
|
||||||
|
outputs = { self }: {
|
||||||
|
homeManagerModules.default = import ./home.nix;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
autosuggestion.enable = true;
|
||||||
|
syntaxHighlighting.enable = true;
|
||||||
|
|
||||||
|
oh-my-zsh = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [ "git" ];
|
||||||
|
theme = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
plugins = [
|
||||||
|
{
|
||||||
|
name = "powerlevel10k";
|
||||||
|
src = pkgs.zsh-powerlevel10k;
|
||||||
|
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
initContent = lib.mkMerge [
|
||||||
|
(lib.mkOrder 500 ''
|
||||||
|
[[ -r "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" ]] \
|
||||||
|
&& source "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh"
|
||||||
|
'')
|
||||||
|
(lib.mkOrder 1500 ''
|
||||||
|
[[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh
|
||||||
|
|
||||||
|
${builtins.readFile ./shell/.mattrc}
|
||||||
|
|
||||||
|
# work / sensitive overrides (gitignored, not in repo)
|
||||||
|
[[ -f ~/.allenairc ]] && source ~/.allenairc
|
||||||
|
[[ -f ~/.wwurc ]] && source ~/.wwurc
|
||||||
|
|
||||||
|
[[ -f ~/.fzf.zsh ]] && source ~/.fzf.zsh
|
||||||
|
|
||||||
|
[[ -d "$HOME/.bun" ]] && {
|
||||||
|
export BUN_INSTALL="$HOME/.bun"
|
||||||
|
export PATH="$BUN_INSTALL/bin:$PATH"
|
||||||
|
[[ -s "$BUN_INSTALL/_bun" ]] && source "$BUN_INSTALL/_bun"
|
||||||
|
}
|
||||||
|
|
||||||
|
export PATH="/nix/var/nix/profiles/default/bin:$PATH"
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
+3
-1
@@ -13,7 +13,7 @@ plugins=(git)
|
|||||||
|
|
||||||
# personal rc files
|
# personal rc files
|
||||||
[[ -f ~/.mattrc ]] && source ~/.mattrc
|
[[ -f ~/.mattrc ]] && source ~/.mattrc
|
||||||
[[ -f ~/.musicrc ]] && source ~/.musicrc
|
# [[ -f ~/.musicrc ]] && source ~/.musicrc
|
||||||
|
|
||||||
# work / sensitive overrides (gitignored, not in repo)
|
# work / sensitive overrides (gitignored, not in repo)
|
||||||
[[ -f ~/.allenairc ]] && source ~/.allenairc
|
[[ -f ~/.allenairc ]] && source ~/.allenairc
|
||||||
@@ -28,3 +28,5 @@ plugins=(git)
|
|||||||
export PATH="$BUN_INSTALL/bin:$PATH"
|
export PATH="$BUN_INSTALL/bin:$PATH"
|
||||||
[[ -s "$BUN_INSTALL/_bun" ]] && source "$BUN_INSTALL/_bun"
|
[[ -s "$BUN_INSTALL/_bun" ]] && source "$BUN_INSTALL/_bun"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export PATH="/nix/var/nix/profiles/default/bin:$PATH"
|
||||||
|
|||||||
Reference in New Issue
Block a user