23 lines
600 B
Nix
23 lines
600 B
Nix
# /home/henrov/nixos/modules/home-manager/shell/starship.nix
|
|
#
|
|
# Home Manager Starship prompt configuration.
|
|
# Configuration is sourced from: ~/nixos/files/conf/terminal/starship.toml
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
# From: nixos/modules/home-manager/shell -> nixos/files/conf/terminal
|
|
confDir = ../../../files/conf/terminal;
|
|
in
|
|
{
|
|
programs.starship = {
|
|
enable = true;
|
|
|
|
# Let Starship hook into shells managed by Home Manager.
|
|
enableZshIntegration = true;
|
|
enableBashIntegration = true;
|
|
|
|
settings = builtins.fromTOML (builtins.readFile (confDir + "/starship.toml"));
|
|
};
|
|
}
|