From 0ead313bce224031d186a138959ba7ed5f02a784 Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Thu, 19 Mar 2026 09:01:30 +0000 Subject: [PATCH] Working on reshuffling --- Droidnix/README.org | 22 +++++++++++-------- .../generated/modules/terminals/starship.nix | 22 +++++++++++-------- 2 files changed, 26 insertions(+), 18 deletions(-) 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; - }; }; }; }