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