stylix/modules/fish.nix

25 lines
522 B
Nix
Raw Normal View History

2020-12-20 20:12:20 +00:00
{ pkgs, config, ... }:
let
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}
base16-${config.lib.stylix.colors.slug}
2020-12-20 20:12:20 +00:00
'';
in {
programs.fish.promptInit = promptInit;
home-manager.sharedModules = [{
programs.fish.interactiveShellInit = promptInit;
}];
2020-12-20 20:12:20 +00:00
}