Working on reshuffling
This commit is contained in:
+8
-9
@@ -1306,24 +1306,23 @@ 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 {
|
||||||
programs.starship = {
|
# Home Manager users block avoids undefined `programs`
|
||||||
enable = true;
|
home-manager.users.henrov = {
|
||||||
settings = starshipConfig;
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
settings = starshipConfig;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 {
|
||||||
programs.starship = {
|
# Home Manager users block avoids undefined `programs`
|
||||||
enable = true;
|
home-manager.users.henrov = {
|
||||||
settings = starshipConfig;
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
settings = starshipConfig;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user