Add Fish module

This commit is contained in:
Daniel Thwaites 2020-12-20 20:12:20 +00:00
parent 2ad5b5c6fa
commit c3cfff809e
No known key found for this signature in database
GPG key ID: D8AFC4BF05670F9D
2 changed files with 28 additions and 0 deletions

View file

@ -3,6 +3,7 @@
./stylix/default.nix
./modules/console.nix
./modules/fish.nix
./modules/lightdm.nix
./modules/qutebrowser.nix
./modules/vim.nix

27
modules/fish.nix Normal file
View file

@ -0,0 +1,27 @@
{ pkgs, config, ... }:
let
# When https://github.com/tomyun/base16-fish/pull/5 is merged,
# this can use the main repository rather than a fork
base16-fish = pkgs.fetchFromGitHub {
owner = "ngmoviedo";
repo = "base16-fish";
rev = "2aa139c901c8568764dbdc13934862178cb84595";
sha256 = "ppYxLr+wD42Xwsq8dk6MLk8TrudTnlQlgvFf4ZyTjVk=";
};
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.promptInit = promptInit;
};
}