mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-28 11:43:51 -08:00
feat: migrate oh-my-posh to home-manager
This commit is contained in:
parent
5f106daf7a
commit
c95b662f92
1 changed files with 6 additions and 2 deletions
8
home.nix
8
home.nix
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue