remove deprecated option

This commit is contained in:
Sakooooo 2023-12-24 13:35:41 +04:00
parent 97c3c4fe55
commit 6e678c9918
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -1,66 +1,70 @@
{ inputs, options, config, lib, pkgs, ...}:
with lib;
let cfg = config.modules.shell.zsh;
in
{ {
inputs,
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.shell.zsh;
in {
options.modules.shell.zsh = { options.modules.shell.zsh = {
enable = mkEnableOption false; enable = mkEnableOption false;
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
users.users.sako.shell = pkgs.zsh; users.users.sako.shell = pkgs.zsh;
programs.zsh = { programs.zsh = {
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;
# promptInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme"; # promptInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
}; };
home-manager.users.sako = { pkgs, ...}: { home-manager.users.sako = {pkgs, ...}: {
home.file = { home.file = {
};
programs.direnv = {
enableZshIntegration = true;
enable = true;
};
programs.zsh = {
enable = true;
enableCompletion = true;
shellAliases = {
ll = "ls -l";
update = "sudo nixos-rebuild switch -v";
}; };
plugins = [ programs.direnv = {
{ enableZshIntegration = true;
name = "zsh-nix-shell"; enable = true;
file = "nix-shell.plugin.zsh"; };
src = pkgs.fetchFromGitHub { programs.zsh = {
owner = "chisui"; enable = true;
repo = "zsh-nix-shell"; enableCompletion = true;
rev = "v0.7.0"; shellAliases = {
sha256 = "0za4aiwwrlawnia4f29msk822rj9bgcygw6a8a6iikiwzjjz0g91"; ll = "ls -l";
update = "sudo nixos-rebuild switch -v";
}; };
} plugins = [
{ {
name = "powerlevel10k"; name = "zsh-nix-shell";
src = pkgs.zsh-powerlevel10k; file = "nix-shell.plugin.zsh";
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme"; src = pkgs.fetchFromGitHub {
} owner = "chisui";
{ repo = "zsh-nix-shell";
name = "powerlevel10k-config"; rev = "v0.7.0";
src = ../../../config/zsh; sha256 = "0za4aiwwrlawnia4f29msk822rj9bgcygw6a8a6iikiwzjjz0g91";
file = "p10k.zsh"; };
} }
]; {
name = "powerlevel10k";
src = pkgs.zsh-powerlevel10k;
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
}
{
name = "powerlevel10k-config";
src = ../../../config/zsh;
file = "p10k.zsh";
}
];
};
}; };
};
# for theme # for theme
fonts.fonts = with pkgs;[ fonts.packages = with pkgs; [
jetbrains-mono jetbrains-mono
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) (nerdfonts.override {fonts = ["JetBrainsMono"];})
]; ];
}; };
} }