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
+15 -11
View File
@@ -1316,19 +1316,23 @@ let
enableStarship = true; enableStarship = true;
in in
{ {
# Declare an enable option # Declare a top-level module option
options.enableStarship = lib.mkEnableOption "Enable Starship prompt"; options.starship = {
enable = lib.mkEnableOption "Enable Starship prompt";
# Wrap all configuration safely configFiles = lib.mkOption {
config = lib.mkIf enableStarship { type = lib.types.attrsOf lib.types.any;
# Symbolic attributes only — fully self-contained default = {};
myStarship = { description = "Symbolic Starship configuration files";
enable = true;
assetsDir = ../../../assets/system/conf;
files = {
"starship.toml" = starshipConfig;
}; };
}; };
# Populate the option safely
config = lib.mkIf enableStarship {
starship.enable = true;
starship.configFiles = {
"starship.toml" = starshipConfig;
assetsDir = ../../../assets/system/conf;
};
}; };
} }
#+END_SRC #+END_SRC
@@ -11,18 +11,22 @@ let
enableStarship = true; enableStarship = true;
in in
{ {
# Declare an enable option # Declare a top-level module option
options.enableStarship = lib.mkEnableOption "Enable Starship prompt"; options.starship = {
enable = lib.mkEnableOption "Enable Starship prompt";
# Wrap all configuration safely configFiles = lib.mkOption {
config = lib.mkIf enableStarship { type = lib.types.attrsOf lib.types.any;
# Symbolic attributes only — fully self-contained default = {};
myStarship = { description = "Symbolic Starship configuration files";
enable = true;
assetsDir = ../../../assets/system/conf;
files = {
"starship.toml" = starshipConfig;
}; };
}; };
# Populate the option safely
config = lib.mkIf enableStarship {
starship.enable = true;
starship.configFiles = {
"starship.toml" = starshipConfig;
assetsDir = ../../../assets/system/conf;
};
}; };
} }