nichts/modules/shell/module.nix

13 lines
417 B
Nix
Raw Normal View History

2024-10-25 14:41:43 +02:00
# This shell setup was inspired by sioodmy. Check out his setup!
{pkgs, ...}: let
toml = pkgs.formats.toml {};
starship-config = import ./starship.nix;
in (pkgs.symlinkJoin {
name = "fish-wrapped";
paths = [pkgs.fish pkgs.starship pkgs.fzf];
buildInputs = [pkgs.makeWrapper];
postBuild = ''
wrapProgram $out/bin/fish --set STARSHIP_CONFIG "${toml.generate "starship.toml" starship-config}" \
'';
})