blob: c39ec7a52943c4fd80cdf29c4e4f95fb34d25c04 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{
config,
options,
lib,
pkgs,
...
}: let
zshConfig = config.modules.shell.zsh;
in {
options.modules.shell.zsh = {
enable = lib.mkOption {
type = lib.types.bool;
default = true;
};
};
config = lib.mkIf (zshConfig.enable) {
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
environment.sessionVariables.SHELL = "${pkgs.zsh}/bin/zsh";
environment.pathsToLink = ["/share/zsh"];
home.packages = [
pkgs.zsh-autocomplete
pkgs.pure-prompt
pkgs.wget
pkgs.curl
pkgs.htop
pkgs.btop
];
home.manager.programs = {
direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv.enable = true;
};
zsh = {
enable = true;
enableAutosuggestions = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
autocd = true;
defaultKeymap = "viins";
dotDir = ".config/zsh";
history = {
size = 10000;
ignoreDups = true;
};
};
};
};
}
|