32 lines
790 B
Nix
32 lines
790 B
Nix
{ lib, config, pkgs, flakeRoot, ... }:
|
|
|
|
let
|
|
# Default username fallback
|
|
username = config.defaultUser or "henrov";
|
|
|
|
# Path to the starship config in assets
|
|
starshipConfSrc = "${flakeRoot}/assets/traveldroid/conf/starship.toml";
|
|
in
|
|
{
|
|
#################################
|
|
# Enable Starship system-wide
|
|
#################################
|
|
environment.systemPackages = [ pkgs.starship ];
|
|
|
|
#################################
|
|
# Home Manager user configuration
|
|
#################################
|
|
_module.args.hmUsers = {
|
|
${username} = {
|
|
programs.starship = {
|
|
enable = true;
|
|
};
|
|
|
|
# Copy the starship.toml from assets to ~/.config/starship.toml
|
|
home.file = {
|
|
".config/starship.toml" = { source = starshipConfSrc; };
|
|
};
|
|
};
|
|
};
|
|
}
|