From df2f0eef1ebfb8f6812ecc6cbc8a1db98096312d Mon Sep 17 00:00:00 2001
From: Jens Nolte <jens@nightmarestudio.de>
Date: Fri, 4 Oct 2019 04:39:11 +0200
Subject: [PATCH] Fix root command (temporary); Fix zsh key timeout

---
 nixos/layers/zsh.nix | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/nixos/layers/zsh.nix b/nixos/layers/zsh.nix
index 6a3a8c6..979adc4 100644
--- a/nixos/layers/zsh.nix
+++ b/nixos/layers/zsh.nix
@@ -26,7 +26,8 @@ fi
 
   environment.shellAliases = {
     # 'root' gives a proper root login session
-    root = "machinectl shell root@";
+    #root = "machinectl shell root@";
+    root = "sudo su";
 
     ls = "ls --color=auto";
     l = "ls -l";
@@ -77,6 +78,10 @@ then
 	alias icat="kitty +kitten icat"
 fi
 
+# "The time the shell waits, in hundredths of seconds, for another key to be pressed when reading bound multi-character sequences."
+# This is for vim-style multi-letter commands (<f><d> is mapped to <Esc>)
+KEYTIMEOUT=10
+
 HISTSIZE=100000
 SAVEHIST=100000
 
@@ -200,4 +205,4 @@ man() {
   command man "$@"
 }
   '';
-}
\ No newline at end of file
+}
-- 
GitLab