Working on reshuffling
This commit is contained in:
+8
-4
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user