mirror of
https://github.com/danth/stylix
synced 2024-11-26 22:20:22 +00:00
23 lines
530 B
Nix
23 lines
530 B
Nix
{ pkgs, config, ... }:
|
|
|
|
let
|
|
base16-fish = pkgs.fetchFromGitHub {
|
|
owner = "tomyun";
|
|
repo = "base16-fish";
|
|
rev = "7f647967fddedaf803191bc9113b13d2071dc3cf";
|
|
sha256 = "IGUbLjsmmAvB9UKGkR7oqdpjeVEfzt83GpyBkrZf2O4=";
|
|
};
|
|
|
|
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; };
|
|
}
|