first working build of rewrite
This commit is contained in:
commit
44a3f420c6
29 changed files with 1261 additions and 0 deletions
26
modules/home-manager/zsh.nix
Normal file
26
modules/home-manager/zsh.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ pkgs, config, lib, ...}:
|
||||
{
|
||||
options.speccon18.hm.zsh.enable = lib.mkEnableOption "enables specs zsh config";
|
||||
config = lib.mkIf config.speccon18.hm.zsh.enable {
|
||||
programs.zsh = {
|
||||
enable = lib.mkDefault true;
|
||||
dotDir = ".config/zsh";
|
||||
history = {
|
||||
path = "$ZDOTDIR/.zsh_history";
|
||||
save = 10000000;
|
||||
};
|
||||
enableAutosuggestions = lib.mkDefault true;
|
||||
enableCompletion = lib.mkDefault true;
|
||||
syntaxHighlighting.enable = lib.mkDefault true;
|
||||
shellAliases = {
|
||||
ls = "eza -l";
|
||||
lsa = "eza -al";
|
||||
grep = "rg";
|
||||
osrb = "sudo nixos-rebuild $1 --flake ~/code/nixos-config/#katana";
|
||||
};
|
||||
localVariables = {
|
||||
EDITOR="hx";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue