shell: cleanup
This commit is contained in:
parent
eab21ed260
commit
965992fb76
1 changed files with 0 additions and 21 deletions
|
@ -1,21 +0,0 @@
|
||||||
# This shell setup was inspired by sioodmy. Check out his setup!
|
|
||||||
{pkgs, ...}: let
|
|
||||||
toml = pkgs.formats.toml {};
|
|
||||||
starship-config = import ./starship.nix;
|
|
||||||
aliases = import ./aliases.nix;
|
|
||||||
|
|
||||||
fishinit = import ./fishinit.nix {inherit pkgs aliasesStr;};
|
|
||||||
|
|
||||||
aliasesStr =
|
|
||||||
pkgs.lib.concatStringsSep "\n"
|
|
||||||
(pkgs.lib.mapAttrsToList (k: v: "alias ${k}=\"${v}\"") aliases);
|
|
||||||
packages = import ./packages.nix pkgs;
|
|
||||||
in (pkgs.symlinkJoin {
|
|
||||||
name = "fish-wrapped";
|
|
||||||
paths = [pkgs.fish] ++ packages;
|
|
||||||
buildInputs = [pkgs.makeWrapper];
|
|
||||||
postBuild = ''
|
|
||||||
wrapProgram $out/bin/fish --set STARSHIP_CONFIG "${toml.generate "starship.toml" starship-config}" \
|
|
||||||
--init-command source ${fishinit}
|
|
||||||
'';
|
|
||||||
})
|
|
Loading…
Add table
Add a link
Reference in a new issue