mirror of
https://github.com/danth/stylix
synced 2025-02-16 21:38:40 +00:00
Add Fish module
This commit is contained in:
parent
2ad5b5c6fa
commit
c3cfff809e
2 changed files with 28 additions and 0 deletions
|
@ -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
27
modules/fish.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue