aboutsummaryrefslogtreecommitdiff
path: root/configuration.nix
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2020-12-20 16:49:47 +0530
committerAkshay Nair <phenax5@gmail.com>2020-12-20 16:49:47 +0530
commit568f7903ca7464f99df659b8488bd731e4f2c4f0 (patch)
treedfa7f9d077eb85ec840c8bfcaa04c1d64cc5aa29 /configuration.nix
parentc580a9ec2a1a43a682117eca41c3867e8771117a (diff)
downloadnixos-config-568f7903ca7464f99df659b8488bd731e4f2c4f0.tar.gz
nixos-config-568f7903ca7464f99df659b8488bd731e4f2c4f0.zip
Adds zsh config
Diffstat (limited to '')
-rw-r--r--configuration.nix29
1 files changed, 25 insertions, 4 deletions
diff --git a/configuration.nix b/configuration.nix
index b59ac66..9696c5d 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -27,8 +27,24 @@
# Global
environment.variables = {
EDITOR = "nvim";
+ SHELL = "zsh";
+ VISUAL = "nvim";
};
+ environment.shells = [ pkgs.zsh pkgs.bashInteractive ];
+ programs.zsh = {
+ enable = true;
+ enableCompletion = true;
+ enableBashCompletion = true;
+ autosuggestions.enable = true;
+ syntaxHighlighting.enable = true;
+ histFile = "~/.config/zshhistory";
+ histSize = 50000;
+ interactiveShellInit = "source ~/nixos/external/zsh/zshrc";
+ promptInit = "";
+ };
+
+
# X11 config
services.xserver = {
enable = true;
@@ -62,6 +78,7 @@
users.users.imsohexy = {
isNormalUser = true;
extraGroups = [ "wheel" "input" "audio" "video" "storage" "git" "networkmanager" ];
+ shell = pkgs.zsh;
};
# Nix config
@@ -89,10 +106,13 @@
# Packages
environment.systemPackages = with pkgs; [
vim
+ neovim
silver-searcher
ripgrep
fzf
git
+ nodejs-15_x
+ yarn
dwm
st
@@ -108,6 +128,7 @@
feh
ffmpeg-full
+ pass
alsaUtils
unzip
curl
@@ -121,10 +142,10 @@
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
- # programs.gnupg.agent = {
- # enable = true;
- # enableSSHSupport = true;
- # };
+ programs.gnupg.agent = {
+ enable = true;
+ enableSSHSupport = false;
+ };
# This value determines the NixOS release from which the default