mirror of
https://github.com/danth/stylix
synced 2024-11-23 12:43:12 +00:00
24 lines
522 B
Nix
24 lines
522 B
Nix
{ pkgs, config, ... }:
|
|
|
|
let
|
|
theme = config.lib.stylix.colors {
|
|
templateRepo = pkgs.fetchFromGitHub {
|
|
owner = "tomyun";
|
|
repo = "base16-fish";
|
|
rev = "7f647967fddedaf803191bc9113b13d2071dc3cf";
|
|
sha256 = "IGUbLjsmmAvB9UKGkR7oqdpjeVEfzt83GpyBkrZf2O4=";
|
|
};
|
|
};
|
|
|
|
promptInit = ''
|
|
source ${theme}
|
|
base16-${config.lib.stylix.colors.slug}
|
|
'';
|
|
|
|
in {
|
|
programs.fish.promptInit = promptInit;
|
|
|
|
home-manager.sharedModules = [{
|
|
programs.fish.interactiveShellInit = promptInit;
|
|
}];
|
|
}
|