From 65bbf5411d8d3e30bffcc278ccace65c7e75c70c Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Tue, 8 Mar 2022 21:00:24 -0600 Subject: Implement shell environments --- home/default.nix | 7 +++++++ home/zshrc.nix | 4 ++++ 2 files changed, 11 insertions(+) (limited to 'home') diff --git a/home/default.nix b/home/default.nix index abd034b..10dbe18 100644 --- a/home/default.nix +++ b/home/default.nix @@ -1,6 +1,11 @@ { lib, config, pkgs, ... }: { imports = [ ./unfree.nix ]; + nix.registry."system".to = { + type = "path"; + path = "/home/ale/nix"; + }; + home = { # This value determines the Home Manager release that your # configuration is compatible with. This helps avoid breakage @@ -155,6 +160,8 @@ clock24 = true; escapeTime = 10; terminal = "xterm-256color"; + keyMode = "vi"; + extraConfig = '' set -g mouse on set -ga update-environment " LIFT_PID" diff --git a/home/zshrc.nix b/home/zshrc.nix index 68c3958..09b6e32 100644 --- a/home/zshrc.nix +++ b/home/zshrc.nix @@ -20,6 +20,10 @@ source $HOME/System/dot/git-aliases.zsh } + function shenv() { + nix shell 'system#shenvs.'"$1" + } + function xseli() { T=$(mktemp) $EDITOR -n $T -- cgit v1.2.3