summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-03-08 21:00:24 -0600
committerAlejandro Soto <alejandro@34project.org>2022-03-08 21:09:54 -0600
commit65bbf5411d8d3e30bffcc278ccace65c7e75c70c (patch)
tree29c3e9b3e041cf68bee2947f2a66b7bf9f32982d /home
parent3e509d0fd1034c1dd67e16ec6000e46be9dd65d9 (diff)
Implement shell environments
Diffstat (limited to '')
-rw-r--r--home/default.nix7
-rw-r--r--home/zshrc.nix4
2 files changed, 11 insertions, 0 deletions
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