Files
nixos/Droidnix/generated/modules/terminals/starship.nix
T
2026-03-19 08:56:37 +00:00

21 lines
498 B
Nix

{ lib, ... }:
let
starshipAssets = ../../../assets/system/conf/starship.toml;
starshipConfig = lib.importTOML starshipAssets;
enablestarship = true; # toggle on/off
in
{
options.enablestarship = lib.mkEnableOption "Enable Starship prompt";
# Everything is wrapped safely in config
config = lib.mkIf enablestarship {
# Just symbolic references to files, no pkgs or recursive config
programs.starship = {
enable = true;
settings = starshipConfig;
};
};
}