2022-07-25 19:38:43 +00:00
|
|
|
{ pkgs, config, lib, ... }:
|
2020-12-20 20:12:20 +00:00
|
|
|
|
|
|
|
let
|
2022-04-23 09:36:20 +00:00
|
|
|
theme = config.lib.stylix.colors {
|
|
|
|
templateRepo = pkgs.fetchFromGitHub {
|
|
|
|
owner = "tomyun";
|
|
|
|
repo = "base16-fish";
|
|
|
|
rev = "7f647967fddedaf803191bc9113b13d2071dc3cf";
|
|
|
|
sha256 = "IGUbLjsmmAvB9UKGkR7oqdpjeVEfzt83GpyBkrZf2O4=";
|
|
|
|
};
|
2020-12-20 20:12:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
promptInit = ''
|
|
|
|
source ${theme}
|
2022-07-22 16:53:28 +00:00
|
|
|
base16-${config.lib.stylix.colors.slug}
|
2020-12-20 20:12:20 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
in {
|
2022-07-25 19:38:43 +00:00
|
|
|
options.stylix.targets.fish.enable =
|
|
|
|
config.lib.stylix.mkEnableTarget "Fish" true;
|
2020-12-20 20:12:20 +00:00
|
|
|
|
2022-07-25 19:38:43 +00:00
|
|
|
config = lib.mkIf config.stylix.targets.fish.enable {
|
|
|
|
programs.fish.promptInit = promptInit;
|
|
|
|
|
|
|
|
home-manager.sharedModules = [{
|
|
|
|
programs.fish.interactiveShellInit = promptInit;
|
|
|
|
}];
|
|
|
|
};
|
2020-12-20 20:12:20 +00:00
|
|
|
}
|