Working on reshuffling
This commit is contained in:
+13
-9
@@ -1316,18 +1316,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";
|
||||||
|
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 {
|
config = lib.mkIf enableStarship {
|
||||||
# Symbolic attributes only — fully self-contained
|
starship.enable = true;
|
||||||
myStarship = {
|
starship.configFiles = {
|
||||||
enable = true;
|
"starship.toml" = starshipConfig;
|
||||||
assetsDir = ../../../assets/system/conf;
|
assetsDir = ../../../assets/system/conf;
|
||||||
files = {
|
|
||||||
"starship.toml" = starshipConfig;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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";
|
||||||
|
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 {
|
config = lib.mkIf enableStarship {
|
||||||
# Symbolic attributes only — fully self-contained
|
starship.enable = true;
|
||||||
myStarship = {
|
starship.configFiles = {
|
||||||
enable = true;
|
"starship.toml" = starshipConfig;
|
||||||
assetsDir = ../../../assets/system/conf;
|
assetsDir = ../../../assets/system/conf;
|
||||||
files = {
|
|
||||||
"starship.toml" = starshipConfig;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user