29 lines
568 B
Nix
29 lines
568 B
Nix
{ pkgs, config, lib, ... }:
|
|
with lib;
|
|
|
|
let cfg = config.erwin.fish;
|
|
in {
|
|
options.erwin.fish = {
|
|
enable = mkOption {
|
|
description = "Enable fish shell";
|
|
type = types.bool;
|
|
default = false;
|
|
};
|
|
};
|
|
|
|
config = mkIf (cfg.enable) (let starship = pkgs.starship;
|
|
in {
|
|
programs.starship = {
|
|
enable = true;
|
|
enableFishIntegration = true;
|
|
};
|
|
|
|
programs.fish = {
|
|
enable = true;
|
|
|
|
# interactiveShellInit = ''
|
|
# source ("${starship}/bin/starship" init fish --print-full-init | psub)
|
|
# '';
|
|
};
|
|
});
|
|
}
|