Working on reshuffling
This commit is contained in:
+11
-7
@@ -1306,20 +1306,24 @@ This file sets up starship prompt
|
|||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
# Load the Starship TOML config
|
||||||
starshipAssets = ../../../assets/system/conf/starship.toml;
|
starshipAssets = ../../../assets/system/conf/starship.toml;
|
||||||
starshipConfig = lib.importTOML starshipAssets;
|
starshipConfig = lib.importTOML starshipAssets;
|
||||||
|
|
||||||
enablestarship = true; # toggle on/off
|
enableStarship = true; # toggle on/off
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.enablestarship = lib.mkEnableOption "Enable Starship prompt";
|
# Declare an enable option
|
||||||
|
options.enableStarship = lib.mkEnableOption "Enable Starship prompt";
|
||||||
|
|
||||||
# Everything is wrapped safely in config
|
# Wrap everything safely in `config` to avoid undefined `programs`
|
||||||
config = lib.mkIf enablestarship {
|
config = lib.mkIf enableStarship {
|
||||||
# Just symbolic references to files, no pkgs or recursive config
|
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = starshipConfig;
|
assetsDir = ../../../assets/system/conf;
|
||||||
|
files = {
|
||||||
|
"starship.toml" = starshipConfig;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,20 +1,24 @@
|
|||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
# Load the Starship TOML config
|
||||||
starshipAssets = ../../../assets/system/conf/starship.toml;
|
starshipAssets = ../../../assets/system/conf/starship.toml;
|
||||||
starshipConfig = lib.importTOML starshipAssets;
|
starshipConfig = lib.importTOML starshipAssets;
|
||||||
|
|
||||||
enablestarship = true; # toggle on/off
|
enableStarship = true; # toggle on/off
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.enablestarship = lib.mkEnableOption "Enable Starship prompt";
|
# Declare an enable option
|
||||||
|
options.enableStarship = lib.mkEnableOption "Enable Starship prompt";
|
||||||
|
|
||||||
# Everything is wrapped safely in config
|
# Wrap everything safely in `config` to avoid undefined `programs`
|
||||||
config = lib.mkIf enablestarship {
|
config = lib.mkIf enableStarship {
|
||||||
# Just symbolic references to files, no pkgs or recursive config
|
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = starshipConfig;
|
assetsDir = ../../../assets/system/conf;
|
||||||
|
files = {
|
||||||
|
"starship.toml" = starshipConfig;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user