From 976d383968a0482517224eac9fe0b0eac200012f Mon Sep 17 00:00:00 2001 From: ulve Date: Thu, 18 Jun 2026 23:21:20 +0200 Subject: [PATCH] remove unused shell templates and fix nix-shell prompt --- home.nix | 13 +++++++++++-- templates/shell-csharp.nix | 8 -------- templates/shell-go.nix | 10 ---------- templates/shell-python.nix | 9 --------- templates/shell-ts.nix | 11 ----------- 5 files changed, 11 insertions(+), 40 deletions(-) delete mode 100644 templates/shell-csharp.nix delete mode 100644 templates/shell-go.nix delete mode 100644 templates/shell-python.nix delete mode 100644 templates/shell-ts.nix diff --git a/home.nix b/home.nix index 6e9772a..fbc7c42 100644 --- a/home.nix +++ b/home.nix @@ -87,8 +87,9 @@ programs.starship = { enable = true; enableZshIntegration = true; + enableBashIntegration = true; settings = { - format = "$hostname$directory$git_branch$git_status$direnv$line_break$character"; + format = "$hostname$directory$git_branch$git_status$direnv$nix_shell$line_break$character"; right_format = "$time"; hostname = { @@ -139,6 +140,14 @@ unloaded_msg = "not loaded"; }; + nix_shell = { + format = "[$symbol$state]($style) "; + symbol = "❄ "; + style = "bold #cd0a00"; + impure_msg = "nix"; + pure_msg = "nix-pure"; + }; + character = { success_symbol = "[❯](bold green)"; error_symbol = "[❯](bold red)"; @@ -177,7 +186,7 @@ home.sessionVariables = { _ZO_FZF_OPTS = "--preview 'eza --tree --level=2 --color=always {2..}' --preview-window=right:40%"; - NIX_BUILD_SHELL = "zsh"; + NIX_BUILD_SHELL = "bash"; NIXOS_OZONE_WL = "1"; }; diff --git a/templates/shell-csharp.nix b/templates/shell-csharp.nix deleted file mode 100644 index 612c3cd..0000000 --- a/templates/shell-csharp.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ pkgs ? import {} }: -pkgs.mkShell { - packages = with pkgs; [ - dotnet-sdk - omnisharp-roslyn - # add project-specific packages below - ]; -} diff --git a/templates/shell-go.nix b/templates/shell-go.nix deleted file mode 100644 index a0a5bdc..0000000 --- a/templates/shell-go.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ pkgs ? import {} }: -pkgs.mkShell { - packages = with pkgs; [ - go - gopls - gofumpt - revive - # add project-specific packages below - ]; -} diff --git a/templates/shell-python.nix b/templates/shell-python.nix deleted file mode 100644 index d28b0a8..0000000 --- a/templates/shell-python.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ pkgs ? import {} }: -pkgs.mkShell { - packages = with pkgs; [ - pyright - black - python3Packages.flake8 - # add project-specific packages below - ]; -} diff --git a/templates/shell-ts.nix b/templates/shell-ts.nix deleted file mode 100644 index 36ef2da..0000000 --- a/templates/shell-ts.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ pkgs ? import {} }: -pkgs.mkShell { - packages = with pkgs; [ - nodejs - vtsls - prettierd - eslint_d - fixjson - # add project-specific packages below - ]; -}