diff --git a/Droidnix/README.org b/Droidnix/README.org index 3e3ce16a3..71d470590 100644 --- a/Droidnix/README.org +++ b/Droidnix/README.org @@ -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 = { diff --git a/Droidnix/generated/modules/terminals/starship.nix b/Droidnix/generated/modules/terminals/starship.nix index c66331db3..38f8bd235 100644 --- a/Droidnix/generated/modules/terminals/starship.nix +++ b/Droidnix/generated/modules/terminals/starship.nix @@ -1,19 +1,23 @@ { 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 = {