Working on reshuffling

This commit is contained in:
2026-03-19 08:39:16 +00:00
parent d19ffdf7e1
commit d02941e2de
2 changed files with 38 additions and 22 deletions
+19 -11
View File
@@ -1303,20 +1303,28 @@ This file sets up Kitty terminal
** =generated/modules/terminals/starship.nix=
This file sets up starship prompt
#+BEGIN_SRC nix :tangle generated/modules/terminals/starship.nix :noweb tangle :mkdirp yes :eval never-html
{
lib,
config,
pkgs,
flakeRoot,
...
}:
{ lib, ... }:
let
starshipConfig = lib.importTOML (flakeRoot + "/assets/system/conf/starship.toml");
# Absolute path to the Starship config in the flake
starshipAssets = ../../../assets/system/conf/starship.toml;
# Read the TOML file (or import if you need structured content)
starshipConfig = lib.importTOML starshipAssets;
# Toggle for enabling Starship
enableStarship = true;
in
{
programs.starship = {
enable = true;
settings = starshipConfig;
# Declare an option so this module is configurable
options.enableStarship = lib.mkEnableOption "Enable Starship prompt";
# All runtime config goes under `config`
config = lib.mkIf enableStarship {
programs.starship = {
enable = true;
settings = starshipConfig;
};
};
}
#+END_SRC