Working on reshuffling
This commit is contained in:
+6
-9
@@ -1309,20 +1309,17 @@ let
|
|||||||
starshipAssets = ../../../assets/system/conf/starship.toml;
|
starshipAssets = ../../../assets/system/conf/starship.toml;
|
||||||
starshipConfig = lib.importTOML starshipAssets;
|
starshipConfig = lib.importTOML starshipAssets;
|
||||||
|
|
||||||
enableStarship = true;
|
enablestarship = true; # toggle on/off
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Option to enable Starship
|
options.enablestarship = lib.mkEnableOption "Enable Starship prompt";
|
||||||
options.enableStarship = lib.mkEnableOption "Enable Starship prompt";
|
|
||||||
|
|
||||||
# Config applied only if enabled
|
# Everything is wrapped safely in config
|
||||||
config = lib.mkIf enableStarship {
|
config = lib.mkIf enablestarship {
|
||||||
# Home Manager users block avoids undefined `programs`
|
# Just symbolic references to files, no pkgs or recursive config
|
||||||
home-manager.users.henrov = {
|
programs.starship = {
|
||||||
programs.starship = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = starshipConfig;
|
settings = starshipConfig;
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,20 +4,17 @@ let
|
|||||||
starshipAssets = ../../../assets/system/conf/starship.toml;
|
starshipAssets = ../../../assets/system/conf/starship.toml;
|
||||||
starshipConfig = lib.importTOML starshipAssets;
|
starshipConfig = lib.importTOML starshipAssets;
|
||||||
|
|
||||||
enableStarship = true;
|
enablestarship = true; # toggle on/off
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Option to enable Starship
|
options.enablestarship = lib.mkEnableOption "Enable Starship prompt";
|
||||||
options.enableStarship = lib.mkEnableOption "Enable Starship prompt";
|
|
||||||
|
|
||||||
# Config applied only if enabled
|
# Everything is wrapped safely in config
|
||||||
config = lib.mkIf enableStarship {
|
config = lib.mkIf enablestarship {
|
||||||
# Home Manager users block avoids undefined `programs`
|
# Just symbolic references to files, no pkgs or recursive config
|
||||||
home-manager.users.henrov = {
|
programs.starship = {
|
||||||
programs.starship = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = starshipConfig;
|
settings = starshipConfig;
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user