stylix/modules/fish.nix

24 lines
530 B
Nix
Raw Normal View History

2020-12-20 20:12:20 +00:00
{ pkgs, config, ... }:
let
base16-fish = pkgs.fetchFromGitHub {
2021-05-26 22:43:18 +01:00
owner = "tomyun";
2020-12-20 20:12:20 +00:00
repo = "base16-fish";
2021-05-26 22:43:18 +01:00
rev = "7f647967fddedaf803191bc9113b13d2071dc3cf";
sha256 = "IGUbLjsmmAvB9UKGkR7oqdpjeVEfzt83GpyBkrZf2O4=";
2020-12-20 20:12:20 +00:00
};
theme = config.lib.stylix.base16.buildTemplate "fish"
"${base16-fish}/templates/default.mustache";
promptInit = ''
source ${theme}
base16-stylix
'';
in {
programs.fish.promptInit = promptInit;
stylix.homeModule = { programs.fish.interactiveShellInit = promptInit; };
2020-12-20 20:12:20 +00:00
}