Working on reshuffling
This commit is contained in:
+8
-4
@@ -1306,19 +1306,23 @@ This file sets up starship prompt
|
|||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
# Load the Starship TOML config
|
# Path to your Starship config inside the flake
|
||||||
starshipAssets = ../../../assets/system/conf/starship.toml;
|
starshipAssets = ../../../assets/system/conf/starship.toml;
|
||||||
|
|
||||||
|
# Read and parse the TOML file as a symbolic value
|
||||||
starshipConfig = lib.importTOML starshipAssets;
|
starshipConfig = lib.importTOML starshipAssets;
|
||||||
|
|
||||||
enableStarship = true; # toggle on/off
|
# Toggle on/off
|
||||||
|
enableStarship = true;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Declare an enable option
|
# Declare an enable option
|
||||||
options.enableStarship = lib.mkEnableOption "Enable Starship prompt";
|
options.enableStarship = lib.mkEnableOption "Enable Starship prompt";
|
||||||
|
|
||||||
# Wrap everything safely in `config` to avoid undefined `programs`
|
# Wrap all configuration safely
|
||||||
config = lib.mkIf enableStarship {
|
config = lib.mkIf enableStarship {
|
||||||
programs.starship = {
|
# Symbolic attributes only — fully self-contained
|
||||||
|
myStarship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
assetsDir = ../../../assets/system/conf;
|
assetsDir = ../../../assets/system/conf;
|
||||||
files = {
|
files = {
|
||||||
|
|||||||
@@ -1,19 +1,23 @@
|
|||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
# Load the Starship TOML config
|
# Path to your Starship config inside the flake
|
||||||
starshipAssets = ../../../assets/system/conf/starship.toml;
|
starshipAssets = ../../../assets/system/conf/starship.toml;
|
||||||
|
|
||||||
|
# Read and parse the TOML file as a symbolic value
|
||||||
starshipConfig = lib.importTOML starshipAssets;
|
starshipConfig = lib.importTOML starshipAssets;
|
||||||
|
|
||||||
enableStarship = true; # toggle on/off
|
# Toggle on/off
|
||||||
|
enableStarship = true;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Declare an enable option
|
# Declare an enable option
|
||||||
options.enableStarship = lib.mkEnableOption "Enable Starship prompt";
|
options.enableStarship = lib.mkEnableOption "Enable Starship prompt";
|
||||||
|
|
||||||
# Wrap everything safely in `config` to avoid undefined `programs`
|
# Wrap all configuration safely
|
||||||
config = lib.mkIf enableStarship {
|
config = lib.mkIf enableStarship {
|
||||||
programs.starship = {
|
# Symbolic attributes only — fully self-contained
|
||||||
|
myStarship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
assetsDir = ../../../assets/system/conf;
|
assetsDir = ../../../assets/system/conf;
|
||||||
files = {
|
files = {
|
||||||
|
|||||||
Reference in New Issue
Block a user