From c95b662f928a630512896ff968e2d643c62ead9a Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Thu, 11 Jul 2024 23:19:59 -0700 Subject: [PATCH] feat: migrate oh-my-posh to home-manager --- home.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/home.nix b/home.nix index b9b9b75..75a9935 100755 --- a/home.nix +++ b/home.nix @@ -41,7 +41,6 @@ yq-go # yaml processor https://github.com/mikefarah/yq eza # A modern replacement for ‘ls’ fzf # A command-line fuzzy finder - oh-my-posh bat pavucontrol @@ -493,6 +492,12 @@ enableZshIntegration = true; }; + programs.oh-my-posh = { + enable = true; + enableZshIntegration = true; + settings = builtins.fromJSON (builtins.unsafeDiscardStringContext (builtins.readFile ./prompt.omp.json)); + }; + programs.zsh = { enable = true; enableCompletion = true; @@ -503,7 +508,6 @@ ls = "eza -l --icons=auto"; update = "sudo nixos-rebuild switch"; }; - initExtra = "eval \"$(oh-my-posh init zsh --config \"/etc/nixos/prompt.omp.json\")\""; defaultKeymap = "viins"; zimfw = {