aboutsummaryrefslogtreecommitdiff
path: root/modules/terminal/system/programs/starship.nix
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-07-08 17:03:20 +0000
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-07-08 17:14:14 +0000
commit82ec91b4d2c253c6ccb783f960a2788f230d6ad1 (patch)
tree94dad925340787e5a045d9bb0d094f71dedce036 /modules/terminal/system/programs/starship.nix
parentcfe198ee85f3c5ee41f4221f49b73dd492b42fdc (diff)
start avoiding lib.enum; start using hjem generators
Diffstat (limited to 'modules/terminal/system/programs/starship.nix')
-rw-r--r--modules/terminal/system/programs/starship.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/terminal/system/programs/starship.nix b/modules/terminal/system/programs/starship.nix
index 748c94e..c70a132 100644
--- a/modules/terminal/system/programs/starship.nix
+++ b/modules/terminal/system/programs/starship.nix
@@ -5,9 +5,8 @@
...
}: let
cfg = config.collinux.terminal.programs.starship;
- toml' = pkgs.formats.toml {};
- settings = toml'.generate "starship.toml" {
+ settings = {
format = ''$directory$git_branch$git_status $character'';
add_newline = false;
@@ -38,7 +37,11 @@ in
lib.mkIf cfg.enable {
hjem.users."${config.collinux.user.name}" = {
files = {
- ".config/starship.toml".source = settings;
+ ".config/starship.toml" = {
+ generator = (pkgs.formats.toml {}).generate "starship.toml";
+ value = settings;
+ };
+
".config/fish/conf.d/starship.fish".text = lib.mkIf config.collinux.terminal.shells.fish.enable ''
function starship_transient_prompt_func
starship module character