Working on reshuffling

This commit is contained in:
2026-03-19 09:00:44 +00:00
parent fba85c6ba6
commit 6f51d9fcd9
2 changed files with 16 additions and 8 deletions
+8 -4
View File
@@ -1306,19 +1306,23 @@ This file sets up starship prompt
{ lib, ... }:
let
# Load the Starship TOML config
# Path to your Starship config inside the flake
starshipAssets = ../../../assets/system/conf/starship.toml;
# Read and parse the TOML file as a symbolic value
starshipConfig = lib.importTOML starshipAssets;
enableStarship = true; # toggle on/off
# Toggle on/off
enableStarship = true;
in
{
# Declare an enable option
options.enableStarship = lib.mkEnableOption "Enable Starship prompt";
# Wrap everything safely in `config` to avoid undefined `programs`
# Wrap all configuration safely
config = lib.mkIf enableStarship {
programs.starship = {
# Symbolic attributes only — fully self-contained
myStarship = {
enable = true;
assetsDir = ../../../assets/system/conf;
files = {