Working on reshuffling

This commit is contained in:
2026-03-19 09:01:30 +00:00
parent 6f51d9fcd9
commit 0ead313bce
2 changed files with 26 additions and 18 deletions
+13 -9
View File
@@ -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;
};
};
};
}