diff --git a/Droidnix/README.org b/Droidnix/README.org index 71d470590..727556b01 100644 --- a/Droidnix/README.org +++ b/Droidnix/README.org @@ -1316,18 +1316,22 @@ let enableStarship = true; in { - # Declare an enable option - options.enableStarship = lib.mkEnableOption "Enable Starship prompt"; + # Declare a top-level module option + options.starship = { + enable = lib.mkEnableOption "Enable Starship prompt"; + configFiles = lib.mkOption { + type = lib.types.attrsOf lib.types.any; + default = {}; + description = "Symbolic Starship configuration files"; + }; + }; - # Wrap all configuration safely + # Populate the option safely config = lib.mkIf enableStarship { - # Symbolic attributes only — fully self-contained - myStarship = { - enable = true; + starship.enable = true; + starship.configFiles = { + "starship.toml" = starshipConfig; assetsDir = ../../../assets/system/conf; - files = { - "starship.toml" = starshipConfig; - }; }; }; } diff --git a/Droidnix/generated/modules/terminals/starship.nix b/Droidnix/generated/modules/terminals/starship.nix index 38f8bd235..dd98919f7 100644 --- a/Droidnix/generated/modules/terminals/starship.nix +++ b/Droidnix/generated/modules/terminals/starship.nix @@ -11,18 +11,22 @@ let enableStarship = true; in { - # Declare an enable option - options.enableStarship = lib.mkEnableOption "Enable Starship prompt"; + # Declare a top-level module option + options.starship = { + enable = lib.mkEnableOption "Enable Starship prompt"; + configFiles = lib.mkOption { + type = lib.types.attrsOf lib.types.any; + default = {}; + description = "Symbolic Starship configuration files"; + }; + }; - # Wrap all configuration safely + # Populate the option safely config = lib.mkIf enableStarship { - # Symbolic attributes only — fully self-contained - myStarship = { - enable = true; + starship.enable = true; + starship.configFiles = { + "starship.toml" = starshipConfig; assetsDir = ../../../assets/system/conf; - files = { - "starship.toml" = starshipConfig; - }; }; }; }