modules/shell: init
This commit is contained in:
parent
c315064e26
commit
32403d2a2a
3 changed files with 37 additions and 0 deletions
12
modules/shell/module.nix
Normal file
12
modules/shell/module.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
# 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}" \
|
||||
'';
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue