Working on reshuffling
This commit is contained in:
+13
-9
@@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user