nixos-config

NixOS configs for my systems
Log | Files | Refs

commit 7d0b405cd8367278c3c9f2fc3f280cd37e8b7c7a
parent 4ea36c01c785208823cc1240bfc90279dd89bd1c
Author: vin <git@vineetk.net>
Date:   Sat, 10 Aug 2024 12:20:15 -0400

update zsh config

Diffstat:
Mhome.nix | 39+++++++++++++++++++++++++++++++++++++++
Mhosts/lappy/default.nix | 1+
2 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/home.nix b/home.nix @@ -32,6 +32,23 @@ sessionVariables = { #EDITOR = "vis"; + PAGER = "less"; + LESS = "-iR"; + LESSHISTFILE = "/dev/null"; + #BROWSER = "links -g"; + + GOPROXY = "direct"; + + AGE_KEY = "~/.ssh/id_ed25519"; + AGE_PUB = "~/.ssh/id_ed25519.pub"; + ANGOU_DIR = "/data/angou-age"; + ANGOU_ENCRYPT = "age -R $AGE_PUB"; + ANGOU_DECRYPT = "age -d -i $AGE_KEY"; + ANGOU_EXT = "age"; + ANGOU_CLIPBOARD = "xsel -ib"; + + MOZ_ACCELERATED = 1; + MOZ_WEBRENDER = 1; }; shellAliases = { @@ -152,6 +169,7 @@ "*.swp" ]; }; + vim = { enable = true; defaultEditor = true; @@ -171,6 +189,27 @@ tabstop = 8; }; }; + + zsh = { + enable = true; + enableCompletion = true; + defaultKeymap = "emacs"; + history = { + ignoreDups = true; + ignoreSpace = true; + }; + syntaxHighlighting = { + enable = true; + highlighters = [ + "main" + "brackets" + "pattern" + ]; + patterns = { + "rm -rf *" = "fg=white,bold,bg=red"; + }; + }; + }; }; services = { diff --git a/hosts/lappy/default.nix b/hosts/lappy/default.nix @@ -88,6 +88,7 @@ vis # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. wget ]; + environment.pathsToLink = [ "/share/zsh" ]; programs.zsh.enable = true;