From 16b7251eb551c9e00ce99bf93708540dc7b61856 Mon Sep 17 00:00:00 2001 From: Tomas Rivera <137088692+Totorile1@users.noreply.github.com> Date: Sat, 28 Feb 2026 14:12:26 +0100 Subject: [PATCH] started using oh-my-posh --- hosts/laptop/configuration.nix | 2 +- hosts/laptop/home.nix | 4 ++++ modules/home-manager/oh-my-posh.nix | 10 ++++++++++ modules/home-manager/zsh.nix | 8 ++++++++ 4 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 modules/home-manager/oh-my-posh.nix diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 88c34f2..0b5133a 100755 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -3,7 +3,6 @@ # and in the NixOS manual (accessible by running ‘nixos-help’). { config, pkgs, libs, inputs, ... }: - { imports = [ # Include the results of the hardware scan. @@ -152,6 +151,7 @@ libreoffice gruvbox-gtk-theme hyprpicker powertop +telnet #we need to install gnome and kde utils individually as we dont use gnome gnome-calculator snapshot diff --git a/hosts/laptop/home.nix b/hosts/laptop/home.nix index 08144fd..aa85bfb 100755 --- a/hosts/laptop/home.nix +++ b/hosts/laptop/home.nix @@ -18,6 +18,7 @@ imports = [ ../../modules/home-manager/neovim.nix # dont use nixvim. broken ../../modules/home-manager/rclone.nix ../../modules/home-manager/waybar.nix +../../modules/home-manager/oh-my-posh # zsh customizer ]; @@ -78,9 +79,12 @@ pkgs.gruvbox-gtk-theme # gtk config gtk.theme = { enable = true; +Gruvbox-GTK-Theme-BL-MB = { +enable = true; name = "Gruvbox-GTK-Theme-BL-MB"; package = pkgs.gruvbox-gtk-theme; }; +}; # ssh config diff --git a/modules/home-manager/oh-my-posh.nix b/modules/home-manager/oh-my-posh.nix new file mode 100644 index 0000000..4e387cc --- /dev/null +++ b/modules/home-manager/oh-my-posh.nix @@ -0,0 +1,10 @@ +{ config, pkgs, ... }: + +{ + programs.oh-my-posh = { + enable = true; + enableZshIntegration = true; + useTheme = "gruvbox"; + }; + }; +} diff --git a/modules/home-manager/zsh.nix b/modules/home-manager/zsh.nix index 936cc9e..a2735ff 100644 --- a/modules/home-manager/zsh.nix +++ b/modules/home-manager/zsh.nix @@ -5,5 +5,13 @@ enable = true; autosuggestion.enable = true; initContent = "fastfetch\n"; + shellAliases = { + ".." = "z .."; + grep = "rg"; + ll = "ls -alF"; + la = "ls -A"; + l = "ls -CF"; + ls = "ls -hA -s --color"; + }; }; }