update flake

This commit is contained in:
matt
2026-06-01 12:58:15 -07:00
parent 1d8adffa30
commit eae706c649
3 changed files with 60 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
{
description = "matt's dotfiles Home Manager modules";
outputs = { self }: {
homeManagerModules.default = import ./home.nix;
};
}
+50
View File
@@ -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
View File
@@ -13,7 +13,7 @@ plugins=(git)
# personal rc files
[[ -f ~/.mattrc ]] && source ~/.mattrc
[[ -f ~/.musicrc ]] && source ~/.musicrc
# [[ -f ~/.musicrc ]] && source ~/.musicrc
# work / sensitive overrides (gitignored, not in repo)
[[ -f ~/.allenairc ]] && source ~/.allenairc
@@ -28,3 +28,5 @@ plugins=(git)
export PATH="$BUN_INSTALL/bin:$PATH"
[[ -s "$BUN_INSTALL/_bun" ]] && source "$BUN_INSTALL/_bun"
}
export PATH="/nix/var/nix/profiles/default/bin:$PATH"