Working on reshuffling

This commit is contained in:
2026-03-19 08:40:36 +00:00
parent d02941e2de
commit de7fb43d09
2 changed files with 16 additions and 18 deletions
+5 -6
View File
@@ -1306,26 +1306,25 @@ This file sets up starship prompt
{ lib, ... }: { lib, ... }:
let let
# Absolute path to the Starship config in the flake
starshipAssets = ../../../assets/system/conf/starship.toml; starshipAssets = ../../../assets/system/conf/starship.toml;
# Read the TOML file (or import if you need structured content)
starshipConfig = lib.importTOML starshipAssets; starshipConfig = lib.importTOML starshipAssets;
# Toggle for enabling Starship
enableStarship = true; enableStarship = true;
in in
{ {
# Declare an option so this module is configurable # Option to enable Starship
options.enableStarship = lib.mkEnableOption "Enable Starship prompt"; options.enableStarship = lib.mkEnableOption "Enable Starship prompt";
# All runtime config goes under `config` # Config applied only if enabled
config = lib.mkIf enableStarship { config = lib.mkIf enableStarship {
# Home Manager users block avoids undefined `programs`
home-manager.users.henrov = {
programs.starship = { programs.starship = {
enable = true; enable = true;
settings = starshipConfig; settings = starshipConfig;
}; };
}; };
};
} }
#+END_SRC #+END_SRC
@@ -1,24 +1,23 @@
{ lib, ... }: { lib, ... }:
let let
# Absolute path to the Starship config in the flake
starshipAssets = ../../../assets/system/conf/starship.toml; starshipAssets = ../../../assets/system/conf/starship.toml;
# Read the TOML file (or import if you need structured content)
starshipConfig = lib.importTOML starshipAssets; starshipConfig = lib.importTOML starshipAssets;
# Toggle for enabling Starship
enableStarship = true; enableStarship = true;
in in
{ {
# Declare an option so this module is configurable # Option to enable Starship
options.enableStarship = lib.mkEnableOption "Enable Starship prompt"; options.enableStarship = lib.mkEnableOption "Enable Starship prompt";
# All runtime config goes under `config` # Config applied only if enabled
config = lib.mkIf enableStarship { config = lib.mkIf enableStarship {
# Home Manager users block avoids undefined `programs`
home-manager.users.henrov = {
programs.starship = { programs.starship = {
enable = true; enable = true;
settings = starshipConfig; settings = starshipConfig;
}; };
}; };
};
} }