This commit is contained in:
2025-08-21 19:12:13 +03:00
parent 1fb1e5815e
commit 866e51a5f6

View File

@@ -61,10 +61,14 @@
services.openssh.enable = true;
services.openssh.settings.PasswordAuthentication = false;
# Set shell to vi mode (instead of emacs, ew) and also $EDITOR to nvim
environment.etc."inputrc".text = ''
set editing-mode vi
set keymap vi
'';
users.users.root.shellInit = ''
export EDITOR=nvim
'';
users.users.root.hashedPassword = "$y$j9T$ZT9dUDb5fMGtQTQumYE49.$KI98XnTuykSgTAeP/gttTzEaj0Ys834WxAtKzT1CAb6";
users.users.root.openssh.authorizedKeys.keys = [