2023-07-08 23:27:08 +04:00
|
|
|
{ inputs, options, config, lib, pkgs, ...}:
|
|
|
|
with lib;
|
|
|
|
let cfg = config.modules.shell.zsh;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.modules.shell.zsh = {
|
|
|
|
enable = mkEnableOption false;
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
|
|
|
users.users.sako.shell = pkgs.zsh;
|
|
|
|
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
2023-07-15 22:43:10 +04:00
|
|
|
enableCompletion = true;
|
|
|
|
promptInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
2023-07-15 20:14:15 +04:00
|
|
|
};
|
|
|
|
|
2023-07-15 20:27:04 +04:00
|
|
|
home-manager.users.sako = { pkgs, ...}: {
|
|
|
|
programs.zsh = {
|
2023-07-15 22:39:22 +04:00
|
|
|
plugins = [
|
|
|
|
{
|
|
|
|
name = "zsh-nix-shell";
|
|
|
|
file = "nix-shell.plugin.zsh";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "chisui";
|
|
|
|
repo = "zsh-nix-shell";
|
|
|
|
rev = "v0.7.0";
|
|
|
|
sha256 = "oQpYKBt0gmOSBgay2HgbXiDoZo5FoUKwyHSlUrOAP5E=";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2023-07-08 23:27:08 +04:00
|
|
|
};
|
2023-07-15 20:27:04 +04:00
|
|
|
};
|
2023-07-08 23:27:08 +04:00
|
|
|
|
|
|
|
# for theme
|
|
|
|
fonts.fonts = with pkgs;[
|
|
|
|
jetbrains-mono
|
|
|
|
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
|
|
|
];
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|