Here’s a corrected version that avoids absolute paths and ensures
compatibility with pure evaluation:
This commit is contained in:
+1
-12
@@ -1116,9 +1116,8 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Kitty config (main + theme)
|
# Kitty config (main + theme)
|
||||||
xdg.configFile."kitty/kitty.conf".source = "${flakeRoot}/assets/common/conf/kitty/kitty.conf";
|
xdg.configFile."kitty/kitty.conf".source = "${flakeRoot}/assets/conf/kitty/kitty.conf";
|
||||||
|
|
||||||
/*
|
|
||||||
# Starship (with your custom config)
|
# Starship (with your custom config)
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -1127,18 +1126,8 @@ in
|
|||||||
configFile = "${flakeRoot}/assets/conf/starship.toml";
|
configFile = "${flakeRoot}/assets/conf/starship.toml";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
*/
|
|
||||||
|
|
||||||
# Ensure Kitty's shell starts Starship
|
|
||||||
xdg.configFile."kitty/kitty.conf".text = lib.concatStringsSep "\n" [
|
|
||||||
(builtins.readFile "${flakeRoot}/assets/common/conf/kitty/kitty.conf")
|
|
||||||
""
|
|
||||||
"# Ensure Starship is loaded in Kitty's shell"
|
|
||||||
"shell ${pkgs.zsh}/bin/zsh -c \"${pkgs.starship}/bin/starship init zsh | source\""
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =generated/system/applications/terminal_shell/starship.nix=
|
** =generated/system/applications/terminal_shell/starship.nix=
|
||||||
|
|||||||
Reference in New Issue
Block a user