feat: migrate oh-my-posh to home-manager

This commit is contained in:
Youwen Wu 2024-07-11 23:19:59 -07:00
parent 5f106daf7a
commit c95b662f92
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -41,7 +41,6 @@
yq-go # yaml processor https://github.com/mikefarah/yq yq-go # yaml processor https://github.com/mikefarah/yq
eza # A modern replacement for ls eza # A modern replacement for ls
fzf # A command-line fuzzy finder fzf # A command-line fuzzy finder
oh-my-posh
bat bat
pavucontrol pavucontrol
@ -493,6 +492,12 @@
enableZshIntegration = true; enableZshIntegration = true;
}; };
programs.oh-my-posh = {
enable = true;
enableZshIntegration = true;
settings = builtins.fromJSON (builtins.unsafeDiscardStringContext (builtins.readFile ./prompt.omp.json));
};
programs.zsh = { programs.zsh = {
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;
@ -503,7 +508,6 @@
ls = "eza -l --icons=auto"; ls = "eza -l --icons=auto";
update = "sudo nixos-rebuild switch"; update = "sudo nixos-rebuild switch";
}; };
initExtra = "eval \"$(oh-my-posh init zsh --config \"/etc/nixos/prompt.omp.json\")\"";
defaultKeymap = "viins"; defaultKeymap = "viins";
zimfw = { zimfw = {