27 lines
498 B
Nix
27 lines
498 B
Nix
{ lib, config, pkgs, ... }:
|
|
|
|
let
|
|
username = config.defaultUser or "henrov";
|
|
|
|
# Paths
|
|
starshipAssets = ../../../assets/system/conf/starship.toml;
|
|
in
|
|
{
|
|
# Install Starship system-wide
|
|
environment.systemPackages = [
|
|
pkgs.starship
|
|
];
|
|
|
|
# Home Manager user settings
|
|
_module.args.hmUsers = {
|
|
${username} = {
|
|
home.packages = [
|
|
pkgs.starship
|
|
];
|
|
|
|
# Copy the config into ~/.config
|
|
home.file.".config/starship.toml".source = starshipAssets;
|
|
};
|
|
};
|
|
}
|