From fba85c6ba6c7457e66604a65e1490b868b37ac34 Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Thu, 19 Mar 2026 08:58:02 +0000 Subject: [PATCH] Working on reshuffling --- Droidnix/README.org | 18 +++++++++++------- .../generated/modules/terminals/starship.nix | 18 +++++++++++------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/Droidnix/README.org b/Droidnix/README.org index 222c57403..3e3ce16a3 100644 --- a/Droidnix/README.org +++ b/Droidnix/README.org @@ -1306,20 +1306,24 @@ This file sets up starship prompt { lib, ... }: let + # Load the Starship TOML config starshipAssets = ../../../assets/system/conf/starship.toml; starshipConfig = lib.importTOML starshipAssets; - enablestarship = true; # toggle on/off + enableStarship = true; # toggle on/off in { - options.enablestarship = lib.mkEnableOption "Enable Starship prompt"; + # Declare an enable option + options.enableStarship = lib.mkEnableOption "Enable Starship prompt"; - # Everything is wrapped safely in config - config = lib.mkIf enablestarship { - # Just symbolic references to files, no pkgs or recursive config + # Wrap everything safely in `config` to avoid undefined `programs` + config = lib.mkIf enableStarship { programs.starship = { - enable = true; - settings = starshipConfig; + enable = true; + 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 b029a857c..c66331db3 100644 --- a/Droidnix/generated/modules/terminals/starship.nix +++ b/Droidnix/generated/modules/terminals/starship.nix @@ -1,20 +1,24 @@ { lib, ... }: let + # Load the Starship TOML config starshipAssets = ../../../assets/system/conf/starship.toml; starshipConfig = lib.importTOML starshipAssets; - enablestarship = true; # toggle on/off + enableStarship = true; # toggle on/off in { - options.enablestarship = lib.mkEnableOption "Enable Starship prompt"; + # Declare an enable option + options.enableStarship = lib.mkEnableOption "Enable Starship prompt"; - # Everything is wrapped safely in config - config = lib.mkIf enablestarship { - # Just symbolic references to files, no pkgs or recursive config + # Wrap everything safely in `config` to avoid undefined `programs` + config = lib.mkIf enableStarship { programs.starship = { - enable = true; - settings = starshipConfig; + enable = true; + assetsDir = ../../../assets/system/conf; + files = { + "starship.toml" = starshipConfig; + }; }; }; }