32 lines
732 B
Nix
32 lines
732 B
Nix
# {{{autogen}}}
|
|
{ lib, config, pkgs, flakeRoot, ... }:
|
|
|
|
let
|
|
# Default username fallback
|
|
username = config.defaultUser or "henrov";
|
|
|
|
# Path to the starship config in assets
|
|
starshipConfSrc = "${flakeRoot}/generated/.config/starship.toml";
|
|
in
|
|
{
|
|
#################################
|
|
# Install Starship system-wide
|
|
#################################
|
|
environment.systemPackages = [ pkgs.starship ];
|
|
|
|
#################################
|
|
# Home Manager user configuration
|
|
#################################
|
|
home-manager.users = {
|
|
${username} = {
|
|
|
|
home.file = {
|
|
".config/starship.toml" = {
|
|
text = builtins.readFile "${starshipConfSrc}";
|
|
force = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|