nixos/home/root.nix

40 lines
936 B
Nix

{ config, pkgs, ... }:
{
imports = [ ./common.nix ];
home = {
username = "root";
homeDirectory = "/root";
};
programs = {
bash = {
shellAliases.dd = "dd bs=1M conv=fsync status=progress";
initExtra = ''
session() {
systemd-run -tGM bogale@ --user --wait $SHELL
}
'';
};
tmux = {
enable = true;
clock24 = true;
escapeTime = 0;
keyMode = "vi";
terminal = "screen-256color";
extraConfig = ''
unbind C-b
set -g mouse on
set -g prefix M-f
bind f send-prefix
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind i split-window -v
bind u split-window -h
set -s set-clipboard external
set-option -g focus-events on
set-option -a terminal-features "xterm-256color:RGB"
'';
};
};
}