home-manager: refactor fzf

This commit is contained in:
Primrose 2024-11-30 13:33:59 +01:00
parent a7ef7db50d
commit 1d811d3569
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
3 changed files with 30 additions and 17 deletions

View file

@ -1,6 +1,13 @@
{ lib, config, ... }:
let
cfg = config.programs.starship;
in
{
programs.starship = {
enableFishIntegration = true;
settings = fromTOML (builtins.readFile ./starship.toml);
xdg.configFile = lib.mkIf cfg.enable {
"starship.toml".source = ./starship.toml;
};
}