nixos-config/backup/modules/users/fish/default.nix
2021-11-12 07:23:46 +01:00

27 lines
526 B
Nix

{ pkgs, config, lib, ... }:
with lib;
let cfg = config.erwin.fish;
in {
options.erwin.fish = {
enable = mkEnableOption {
description = "Enable fish shell";
};
};
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)
# '';
};
});
}